aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-21 13:46:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-21 13:46:46 +0000
commit3abd508c1772d3c62710e936ce360636b6da42b7 (patch)
tree69980abc839bc87198258bb7f6d5f10dd65bbef5 /time.c
parent2eb891f642d2830668e83b8b2c0f57b046ff1d06 (diff)
downloadruby-3abd508c1772d3c62710e936ce360636b6da42b7.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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/time.c b/time.c
index a99444fce1..3f29e46525 100644
--- a/time.c
+++ b/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);
}