bugGnash - The GNU Flash player - Bugs: bug #19191, Ming gets large number parsing...


bug #19191: Ming gets large number parsing wrong

Submitted by:  Martin Guy <martinwguy>
Submitted on:  Sat 03 Mar 2007 02:00:43 PM UTC  
Category:  testsuite Severity:  1 - Wish
Release:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 25 Jul 2007 01:17:54 PM UTC, comment #4:

Patch was committed.

Sandro Santilli <strk>
Project Member
Thu 17 May 2007 07:27:50 PM UTC, comment #3:

Patch for Ming has been contributed:


Still not applied though.

Sandro Santilli <strk>
Project Member
Sat 03 Mar 2007 03:33:32 PM UTC, comment #2:

I wouldn't call this a Ming bug, rather it's a feature request.
Integer numbers in ActionScript are 32bit long, so you do
have to use a float if you want to go over that limit.

The "feature" would be for Ming to take your integer as
a float to help you... anyway the problem will persist
if you go over float boundaries.

Sandro Santilli <strk>
Project Member
Sat 03 Mar 2007 02:07:13 PM UTC, comment #1:

My mistake. Ming returns large integer constants as 2147483647 (not the difference), but large constants with an explicit ".0" on the end are returned correctly.

trace (946684800000);
trace (946684800000.0);


14:04:26: TRACE: 2147483647
14:04:26: TRACE: 946684800000

Martin Guy <martinwguy>
Sat 03 Mar 2007 02:00:43 PM UTC, original submission:

Ming's parsing of large integers is broken.

Revealed by:

check(Date.UTC(2000,0,1).valueOf() == 946684800000)
fails although
check(Date.UTC(2000,0,1).valueOf().toString() == "946684800000")

More pointedly:

13:55:40: TRACE: 944537316353

The difference between the two values is exactly 2147483647 or 2^31-1

Martin Guy <martinwguy>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by strk (Posted a comment)
  • -email is unavailable- added by martinwguy (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-07-25 strk Open/ClosedOpen => Closed
    2007-07-25 strk StatusNone => Fixed
    2007-05-17 strk Severity3 - Normal => 1 - Wish

    Back to the top

    Powered by Savane 3.3