diff --git a/ChangeLog b/ChangeLog index dcdd5fb5b0..e8b16b0e87 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:52:57 2005 GOTOU Yuuzou * ext/openssl/ossl.c (Init_openssl): should call diff --git a/parse.y b/parse.y index 12a1cca4ff..3a7af5455b 100644 --- a/parse.y +++ b/parse.y @@ -6108,7 +6108,7 @@ rb_lastline_set(val) } #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)parser_heap, cnt) #define ADD2HEAP(n, ptr) ((parser_heap = (n))->u1.node = (ptr))