Permalink
Browse files

Remove an unused string and comment on an unsafe action

  • Loading branch information...
1 parent 2670fc7 commit 881356e83e5b01877953300203d7c954d0f4078b @ferrous26 ferrous26 committed Apr 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 gcd.c
View
3 gcd.c
@@ -595,7 +595,8 @@ rb_block_arg_dispatcher(rb_vm_block_t *block, VALUE param)
VALUE args[2];
args[0] = (VALUE)block;
args[1] = param;
- rb_rescue(rb_block_arg_eval, (VALUE) args, rb_block_rescue, (VALUE)"gcd.c: Exception in rb_block_arg_dispatcher");
+ // XXX We are casting a C array to VALUE here!!!
+ rb_rescue(rb_block_arg_eval, (VALUE)args, rb_block_rescue, Qnil);
}
static void

0 comments on commit 881356e

Please sign in to comment.