summaryrefslogtreecommitdiff
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
commitedaf4500f84991f9882cfe899a089049269ede8b (patch)
tree69980abc839bc87198258bb7f6d5f10dd65bbef5
parentea6510b8622fd09a639fda2d58939180ebd3ae1c (diff)
time.c: debug print
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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);
}