diff --git a/ChangeLog b/ChangeLog index 103873f570..95b12e9ebb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Oct 13 23:25:10 2005 Nobuyoshi Nakada + + * parse.y (HEAPCNT): bison allocates indivisible size. + fixed: [ruby-core:06261] + Wed Oct 12 12:51:56 2005 GOTOU Yuuzou * ext/openssl/ossl.c (Init_openssl): should call diff --git a/parse.y b/parse.y index 86dcfc7cc8..a5673603d4 100644 --- a/parse.y +++ b/parse.y @@ -8642,7 +8642,7 @@ rb_parser_end_seen_p(VALUE vparser) } #ifdef YYMALLOC -#define HEAPCNT(n, size) ((size) % sizeof(YYSTYPE) ? 0 : (n) * (size) / sizeof(YYSTYPE)) +#define HEAPCNT(n, size) ((n) * (size) / sizeof(YYSTYPE)) #define NEWHEAP(cnt) rb_node_newnode(NODE_ALLOCA, 0, (VALUE)parserp->heap, cnt) #define ADD2HEAP(n, ptr) ((parserp->heap = (n))->u1.node = (ptr))