diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-21 13:46:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-21 13:46:46 +0000 |
commit | edaf4500f84991f9882cfe899a089049269ede8b (patch) | |
tree | 69980abc839bc87198258bb7f6d5f10dd65bbef5 /time.c | |
parent | ea6510b8622fd09a639fda2d58939180ebd3ae1c (diff) | |
download | ruby-edaf4500f84991f9882cfe899a089049269ede8b.tar.gz |
time.c: debug print
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); } |