Bug 25478 - ParseInt and Negatives values
Summary: ParseInt and Negatives values
Status: RESOLVED DUPLICATE of bug 25027
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P1 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-30 00:00 PDT by Julien Dufrenne
Modified: 2009-04-30 02:09 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Dufrenne 2009-04-30 00:00:27 PDT
It seems that the parseInt(-10,44) return -11 instead of -10.
I have noticed this bug on the iPhone 3.0 beta version and tested it on Safari 4 beta too... with the same result.

On Safari 3 and on an iPhone 2.x, I have -10 as result.

I have submitted this bug on the apple bugreporter too.

Regards,
Julien
Comment 1 Mark Rowe (bdash) 2009-04-30 01:20:30 PDT
Have you tried with a nightly build of WebKit?  I think this was reported as bug 25027 and fixed in r42607 around a week ago.
Comment 2 Julien Dufrenne 2009-04-30 02:09:30 PDT
Ok it works with the nightly builds.
Sorry  i have found the previous bug

*** This bug has been marked as a duplicate of 25027 ***