diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-13 14:26:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-13 14:26:00 +0000 |
commit | bb1338082246be60aec645e3686d34c8ca407eda (patch) | |
tree | 9fda5371ebe7e5d12e5789702cd64854d5f77984 /parse.y | |
parent | 2743a0530847ad6665811190d257fecfc9c15337 (diff) |
* 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
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |