From b1b6593502c5bf4092b2641409c815396dfd22c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Thu, 29 Jan 2015 14:10:34 +0800 Subject: [PATCH] bug fix --- TinySTL/Detail/Alloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TinySTL/Detail/Alloc.cpp b/TinySTL/Detail/Alloc.cpp index 94ad13e..260f48f 100644 --- a/TinySTL/Detail/Alloc.cpp +++ b/TinySTL/Detail/Alloc.cpp @@ -102,7 +102,7 @@ namespace TinySTL{ for (int i = 0; i <= EMaxBytes::MAXBYTES; i += EAlign::ALIGN){ my_free_list = free_list + FREELIST_INDEX(i); p = *my_free_list; - if (!p){ + if (p != 0){ *my_free_list = p->next; start_free = (char *)p; end_free = start_free + i;