1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

time.c: debug print

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-12-21 13:46:46 +00:00
parent ea6510b862
commit edaf4500f8

5
time.c
View file

@ -63,6 +63,11 @@ cmp(VALUE x, VALUE y)
return 1;
return 0;
}
#ifdef _WIN32
if (rb_objspace_garbage_object_p(x)) {
rb_fatal("cmp(%p, %p)", (void *)x, (void *)y);
}
#endif
return rb_cmpint(rb_funcall(x, id_cmp, 1, y), x, y);
}