[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:45:30 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Benjamin Wolsey <bwy> 08/03/26 11:45:30
Modified files:
server/asobj : Global.cpp
Log message:
Oops. I was committing from the wrong box.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Global.cpp?cvsroot=gnash&r1=1.100&r2=1.101
Patches:
Index: Global.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/Global.cpp,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -b -r1.100 -r1.101
--- Global.cpp 26 Mar 2008 11:39:58 -0000 1.100
+++ Global.cpp 26 Mar 2008 11:45:30 -0000 1.101
@@ -167,13 +167,14 @@
return as_value(input.c_str());
}
+// parseFloat (string)
static as_value
as_global_parsefloat(const fn_call& fn)
{
ASSERT_FN_ARGS_IS_1
as_value rv;
- float result;
+ double result;
std::istringstream s(fn.arg(0).to_string());
@@ -187,6 +188,7 @@
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