aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-28 17:50:34 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-28 17:50:34 -0700
commit7c4b86c8d126d97295e098e4ec91e3dd4c3271de (patch)
treefcb5053cac94183cc1872221056cb100bfc3206e
parent743038d9a8a72a851d09f2428b9fc009dbaf5298 (diff)
parent1368bc453d6f748232125df05f87858396a963d0 (diff)
Merge branch 'master' of github.com:icetooth/emscripten into incoming
-rw-r--r--AUTHORS1
-rw-r--r--src/library.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index 5ad3f98d..18124a6c 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -104,4 +104,5 @@ a license to everyone to use it as detailed in LICENSE.)
* Daniel Aquino <mr.danielaquino@gmail.com>
* Remi Papillie <remi.papillie@gmail.com>
* Fraser Adams <fraser.adams@blueyonder.co.uk>
+* Michael Tirado <icetooth333@gmail.com>
diff --git a/src/library.js b/src/library.js
index 875d8bab..2b183ea1 100644
--- a/src/library.js
+++ b/src/library.js
@@ -1745,7 +1745,7 @@ LibraryManager.library = {
type == 'F' || type == 'E' || type == 'G') {
var last = 0;
next = get();
- while (next > 0) {
+ while ( next > 0 && (!(next in __scanString.whiteSpace)) ) {
buffer.push(String.fromCharCode(next));
if (__isFloat(buffer.join(''))) {
last = buffer.length;