Permalink
Browse files

Fixed a signed comparison that causes a hang in Emscripten.

  • Loading branch information...
1 parent b44a858 commit 7d3ddff4b717f8cf6a026f38b7528933dde75da8 @max99x max99x committed Sep 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ruby-1.8.7/gc.c
View
@@ -644,7 +644,7 @@ static void
mark_locations_array(register VALUE *x, register long n)
{
VALUE v;
- while (n--) {
+ while (n-- > 0) {
v = *x;
if (is_pointer_to_heap((void *)v)) {
gc_mark(v, 0);

0 comments on commit 7d3ddff

Please sign in to comment.