[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] /srv/bzr/gnash/trunk r11501: cast double to int to el

From: Rob Savoye
Subject: Re: [Gnash-commit] /srv/bzr/gnash/trunk r11501: cast double to int to eliminate compiler warning.
Date: Thu, 10 Sep 2009 08:03:00 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3

On 09/10/09 03:43, strk wrote:

as_value has a to_int() method too, which deals
with specifities when an int is really needed
(overflows and proper rounding).

It wasn't an as_value that needed converting, it was a double. I just got tired of the warning message.

There are tests in the testsuite which fail when
a to_int() is converted to an int(to_number()).
I can't remember out-of-the-box where those tests

The Number AS tests mostly all fail for me anyway, that needs to be tracked down before the release.

        - rob -

reply via email to

[Prev in Thread] Current Thread [Next in Thread]