[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/kjs
From: George Staikos <staikos () kde ! org>
Date: 2005-10-19 19:22:33
Message-ID: 1129749753.943625.3463.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 472073 by staikos:
patch from Leo to fix isNaN(".")
M +5 -0 ustring.cpp
--- branches/KDE/3.5/kdelibs/kjs/ustring.cpp #472072:472073
@@ -578,11 +578,16 @@
while (*c >= '0' && *c <= '9')
c++;
+ const char * const at_dot = c;
if (*c == '.')
c++;
while (*c >= '0' && *c <= '9')
c++;
+ // don't accept a single dot as a number
+ if (c - at_dot == 1 && *at_dot == '.')
+ return at_dot-start;
+
if (*c != 'e')
return c-start;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic