[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/server/asobj Global.cpp
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] gnash/server/asobj Global.cpp |
Date: |
Wed, 26 Mar 2008 11:39:58 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Benjamin Wolsey <bwy> 08/03/26 11:39:58
Modified files:
server/asobj : Global.cpp
Log message:
Missing line.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Global.cpp?cvsroot=gnash&r1=1.99&r2=1.100
Patches:
Index: Global.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/Global.cpp,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -b -r1.99 -r1.100
--- Global.cpp 26 Mar 2008 11:33:57 -0000 1.99
+++ Global.cpp 26 Mar 2008 11:39:58 -0000 1.100
@@ -167,15 +167,13 @@
return as_value(input.c_str());
}
-// parseFloat(string)
-// The return value has double precision
static as_value
as_global_parsefloat(const fn_call& fn)
{
ASSERT_FN_ARGS_IS_1
as_value rv;
- double result;
+ float result;
std::istringstream s(fn.arg(0).to_string());
@@ -185,11 +183,10 @@
return rv;
}
+ rv = result;
return rv;
}
-// parseInt(string[, base])
-//
// The second argument, if supplied, is the base.
// If none is supplied, we have to work out the
// base from the string. Decimal, octal and hexadecimal are
- [Gnash-commit] gnash/server/asobj Global.cpp,
Benjamin Wolsey <=