Nope, 8 was right.

git-svn-id: svn://10.0.0.236/trunk@83896 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nboyd%atg.com
2000-12-20 13:31:59 +00:00
parent 31352dcab2
commit 7e1f1b1404
2 changed files with 2 additions and 2 deletions

View File

@@ -287,7 +287,7 @@ public class ScriptRuntime {
// check for "Infinity"
if (startChar == '+' || startChar == '-')
start++;
if (s.regionMatches(start, "Infinity", 0, 9))
if (s.regionMatches(start, "Infinity", 0, 8))
return startChar == '-'
? Double.NEGATIVE_INFINITY
: Double.POSITIVE_INFINITY;

View File

@@ -287,7 +287,7 @@ public class ScriptRuntime {
// check for "Infinity"
if (startChar == '+' || startChar == '-')
start++;
if (s.regionMatches(start, "Infinity", 0, 9))
if (s.regionMatches(start, "Infinity", 0, 8))
return startChar == '-'
? Double.NEGATIVE_INFINITY
: Double.POSITIVE_INFINITY;