*fixed a crash bug.
This commit is contained in:
parent
69d26f6006
commit
891c601b35
Binary file not shown.
@ -16,7 +16,7 @@ endclass
|
||||
|
||||
class dog(animal)
|
||||
def speak(a)
|
||||
print "bark" + a;
|
||||
print "woof" + a;
|
||||
enddef
|
||||
endclass
|
||||
|
||||
|
@ -213,7 +213,7 @@ static void _tidy_mem_pool(void) {
|
||||
}
|
||||
|
||||
static void _open_mem_pool(void) {
|
||||
#define N 23
|
||||
#define N 22
|
||||
size_t szs[N];
|
||||
size_t lst[N];
|
||||
int i = 0;
|
||||
@ -245,6 +245,8 @@ static void _open_mem_pool(void) {
|
||||
szs[i++] = MB_SIZEOF_RTN;
|
||||
szs[i++] = MB_SIZEOF_CLS;
|
||||
|
||||
mb_assert(i == N);
|
||||
|
||||
memset(lst, 0, sizeof(lst));
|
||||
|
||||
/* Find all unduplicated sizes */
|
||||
|
Loading…
x
Reference in New Issue
Block a user