fixed a bug of not initializing a variable buffer length in compile_class_definition()

This commit is contained in:
hyunghwan.chung
2015-06-21 14:45:45 +00:00
parent 60591201af
commit e87dbbdfcd
5 changed files with 80 additions and 74 deletions

View File

@ -30,8 +30,8 @@ void* stix_allocbytes (stix_t* stix, stix_size_t size)
{
stix_uint8_t* ptr;
#if defined(STIX_DEBUG_GC_1)
stix_gc (stix);
#if defined(STIX_DEBUG_GC_001)
if (!(stix->option.trait & STIX_NOGC)) stix_gc (stix);
#endif
ptr = stix_allocheapmem (stix, stix->curheap, size);