summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-13 14:26:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-13 14:26:00 +0000
commitbb1338082246be60aec645e3686d34c8ca407eda (patch)
tree9fda5371ebe7e5d12e5789702cd64854d5f77984 /parse.y
parent2743a0530847ad6665811190d257fecfc9c15337 (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.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 12a1cca..3a7af54 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))