[Á°][¼¡][ÈÖ¹æ½ç°ìÍ÷][¥¹¥ì¥Ã¥É°ìÍ÷][À¸¥Ç¡¼¥¿]

yarv-dev-en:188

From: "EustáÒuio Rangel de Oliveira Jr." <eustaquiorangel yahoo.com>
Date: Fri, 29 Sep 2006 14:39:19 -0300
Subject: [yarv-dev-en:188] Weird Fixnum behaviour

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there.

Is there some known bug with this:

Ruby 1.8.5:

irb(main):001:0> n = 1073741823
=> 1073741823
irb(main):002:0> n+1
=> 1073741824

Yarv 0.4.1:

irb(main):001:0> n = 1073741823
=> 1073741823
irb(main):002:0> n+1
=> 6

I was doing some calculation with big numbers and noticed that Yarv
gives me a smaller result.

Thanks!

- --
Eustáquio "TaQ" Rangel
http://eustaquiorangel.com

"Poverty is the parent of revolution and crime."
Aristotle
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFHVpGb6UiZnhJiLsRAiaTAKCM7U6480Y2CTwOvIfQ00l0Yp/zBwCdFuNF
bjTBkdrjR3RZfiS+Sy0tPek=
=bxbJ
-----END PGP SIGNATURE-----

--
ML: yarv-dev-en quickml.atdot.net
Info: http://www.atdot.net/~ko1/quickml

[Á°][¼¡][ÈÖ¹æ½ç°ìÍ÷][¥¹¥ì¥Ã¥É°ìÍ÷][À¸¥Ç¡¼¥¿]

->     188 2006-09-30 02:39 [eustaquiorangel yaho] Weird Fixnum behaviour                  
       194 2006-10-02 20:18 ¨±[ko1 atdot.net       ]