public
Description: Rubinius, the Ruby VM
Homepage: http://rubini.us
Clone URL: git://github.com/evanphx/rubinius.git
Treat very large negative numbers as literals in bytecode
wilson (author)
Thu Jan 31 13:20:36 -0800 2008
commit  2eed60dab4670a20b70d665300ff25a11dd827a7
tree    4087ae93823f9bbc6339e917ba851a0331dae68f
parent  0b89175ccc654afb0b26b654824ed5f5db9df650
...
315
316
317
318
 
319
320
321
...
315
316
317
 
318
319
320
321
0
@@ -315,7 +315,7 @@ class Compiler
0
       when 2
0
         add :meta_push_2
0
       else
0
- if int < InlineIntCutoff
0
+ if int.abs < InlineIntCutoff
0
           add :push_int, int
0
         else
0
           push_literal int

Comments

    No one has commented yet.