diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | parse.y | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Oct 13 23:25:10 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * parse.y (HEAPCNT): bison allocates indivisible size. + fixed: [ruby-core:06261] + Wed Oct 12 12:52:57 2005 GOTOU Yuuzou <gotoyuzo@notwork.org> * ext/openssl/ossl.c (Init_openssl): should call @@ -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)) |