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:
parent
ea6510b862
commit
edaf4500f8
1 changed files with 5 additions and 0 deletions
5
time.c
5
time.c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue