ruby-changes:45069
From: nobu <ko1@a...>
Date: Wed, 21 Dec 2016 22:46:50 +0900 (JST)
Subject: [ruby-changes:45069] nobu:r57142 (trunk): time.c: debug print
nobu 2016-12-21 22:46:46 +0900 (Wed, 21 Dec 2016) New Revision: 57142 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57142 Log: time.c: debug print Modified files: trunk/time.c Index: time.c =================================================================== --- time.c (revision 57141) +++ time.c (revision 57142) @@ -63,6 +63,11 @@ cmp(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/time.c#L63 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); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/