# New Ticket Created by  Lithos 
# Please include the string:  [perl #77014]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77014 >


Hi!

Integer literals >int32 seem to overflow on my machine without any
warning or error.

Lithos


This is Rakudo Perl 6, version 2010.07-79-g19931fe built on parrot 2.6.0 r48225

Copyright 2008-2010, The Perl Foundation

$ ./perl6
> 1000000000
1000000000
> 10000000000
1410065408
> 100000000000
1215752192
> 1000000000000
-727379968
> 10000000000000
1316134912
> 100000000000000
276447232
> 1000000000000000
-1530494976
> 10000000000000000
1874919424
> 100000000000000000
1569325056
> 1000000000000000000
-1486618624
> 10000000000000000000
-1981284352
> 100000000000000000000
1661992960
> 1000000000000000000000
-559939584
> 10000000000000000000000
-1304428544
> 100000000000000000000000
-159383552
> 1000000000000000000000000
-1593835520
> 10000000000000000000000000
1241513984
> 100000000000000000000000000
-469762048
> 1000000000000000000000000000
-402653184
> 10000000000000000000000000000
268435456
> 100000000000000000000000000000
-1610612736
> 1000000000000000000000000000000
1073741824
> 10000000000000000000000000000000
-2147483648
> 100000000000000000000000000000000
0
> 1000000000000000000000000000000000
0
> 1000000000.WHAT
Int()
> 10000000000.WHAT
Int()
> 1000000000000000000000000000000000.WHAT
Int()

Reply via email to