On Mon, Aug 06, 2007 at 07:40:23AM +0000, Zou Lunkai wrote:
> x = 0xffffffff;
> y = x << 16;
> -xcheck_equals(Math.round(y), -65536);
> +check_equals(Math.round(y), -65536);
Added debugging messages to Gnash. The above results in:
29735] 10:08:38: Shifting -32768 left for 16
29735] 10:08:38: TRACE: FAILED: expected: -65536 obtained: -2147483648
[/home/strk/src/gnash/gnash-head/testsuite/actionscript.all/ops.as:390]
Now, look at the numbers:
-32768 : FFFFFFFFFFFF8000
-2147483648 : FFFFFFFF80000000
-65536 : FFFFFFFFFFFF0000
Gnash seems correct in returning -2147483648, doesn't it ?
--strk;
_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit