ruby-changes:43767
From: nobu <ko1@a...>
Date: Tue, 9 Aug 2016 14:05:14 +0900 (JST)
Subject: [ruby-changes:43767] nobu:r55840 (trunk): tcltklib.c: missing break [ci skip]
nobu 2016-08-09 14:05:09 +0900 (Tue, 09 Aug 2016) New Revision: 55840 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55840 Log: tcltklib.c: missing break [ci skip] * ext/tk/tcltklib.c (set_max_block_time): fix missing break. TclTkLib.set_max_block_time(1) works but TclTkLib.set_max_block_time(1.0) didn't. Modified files: trunk/ext/tk/tcltklib.c Index: ext/tk/tcltklib.c =================================================================== --- ext/tk/tcltklib.c (revision 55839) +++ ext/tk/tcltklib.c (revision 55840) @@ -1901,6 +1901,7 @@ set_max_block_time(self, time) https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L1901 divmod = rb_funcall(time, rb_intern("divmod"), 1, INT2FIX(1)); tcl_time.sec = NUM2LONG(RARRAY_AREF(divmod, 0)); tcl_time.usec = (long)(NUM2DBL(RARRAY_AREF(divmod, 1)) * 1000000); + break; default: { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/