1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2005-10-13 14:26:00 +00:00
parent 2743a05308
commit bb13380822
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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))