Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a signed comparison that causes a hang in Emscripten.

  • Loading branch information...
commit 7d3ddff4b717f8cf6a026f38b7528933dde75da8 1 parent b44a858
@max99x max99x authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ruby-1.8.7/gc.c
View
2  ruby-1.8.7/gc.c
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.