Created
August 29, 2009 16:40
-
-
Save libc/177566 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 99d0688cfd454cfeb9b0fbcff7fe1514b054f279 | |
Author: Eugene Pimenov <libc@mac.com> | |
Date: Sat Aug 29 20:35:23 2009 +0400 | |
CAPI: cast 0 to VALUE in rb_rescue2 spec, because gcc on snow leopard thinks it's 32bit | |
diff --git a/spec/capi/ext/kernel_spec.c b/spec/capi/ext/kernel_spec.c | |
index 2959938..edb3c40 100644 | |
--- a/spec/capi/ext/kernel_spec.c | |
+++ b/spec/capi/ext/kernel_spec.c | |
@@ -50,7 +50,7 @@ VALUE kernel_spec_rb_rescue2(int argc, VALUE *args, VALUE self) { | |
rb_ary_push(raise_array, args[2]); | |
rb_ary_push(raise_array, args[3]); | |
- return rb_rescue2(kernel_spec_call_proc, main_array, kernel_spec_call_proc, raise_array, args[4], args[5], 0); | |
+ return rb_rescue2(kernel_spec_call_proc, main_array, kernel_spec_call_proc, raise_array, args[4], args[5], (VALUE)0); | |
} | |
VALUE kernel_spec_rb_ensure(VALUE self, VALUE main_proc, VALUE arg, VALUE ensure_proc, VALUE arg2) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment