From bb1338082246be60aec645e3686d34c8ca407eda Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 13 Oct 2005 14:26:00 +0000 Subject: * parse.y (HEAPCNT): bison allocates indivisible size. fixed: [ruby-core:06261] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.y') 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)) -- cgit v1.2.3