diff --git a/ChangeLog b/ChangeLog index 7d97ed018c..7e2c410b02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sat Dec 1 07:16:17 2012 Hiroshi Shirosaki + + * compile.c (ADD_CATCH_ENTRY): add a cast to fix SEGV with x64 mingw + on Windows 8. Without cast, 0 might be non zero value at higher bits + in rb_ary_new3(). + [ruby-core:50258] [Bug #7456] + Sat Dec 1 04:07:57 2012 NARUSE, Yui * parse.y (parser.utf8): remove unused property. diff --git a/compile.c b/compile.c index 152c3d0d34..a93a230af5 100644 --- a/compile.c +++ b/compile.c @@ -249,7 +249,7 @@ r_value(VALUE value) (rb_ary_push(iseq->compile_data->catch_table_ary, \ rb_ary_new3(5, (type), \ (VALUE)(ls) | 1, (VALUE)(le) | 1, \ - (iseqv), (VALUE)(lc) | 1))) + (VALUE)(iseqv), (VALUE)(lc) | 1))) /* compile node */ #define COMPILE(anchor, desc, node) \