<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>25478</bug_id>
          
          <creation_ts>2009-04-30 00:00:27 -0700</creation_ts>
          <short_desc>ParseInt and Negatives values</short_desc>
          <delta_ts>2009-04-30 02:09:30 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>25027</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Julien Dufrenne">julien.dufrenne</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119435</commentid>
    <comment_count>0</comment_count>
    <who name="Julien Dufrenne">julien.dufrenne</who>
    <bug_when>2009-04-30 00:00:27 -0700</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119438</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-04-30 01:20:30 -0700</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119439</commentid>
    <comment_count>2</comment_count>
    <who name="Julien Dufrenne">julien.dufrenne</who>
    <bug_when>2009-04-30 02:09:30 -0700</bug_when>
    <thetext>Ok it works with the nightly builds.
Sorry  i have found the previous bug

*** This bug has been marked as a duplicate of 25027 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>