gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-


From: Bastiaan Jacques
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1786-g0a5e717
Date: Tue, 03 Sep 2013 09:11:18 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  0a5e717f665864025aa0abc14898b5bc33fd574e (commit)
      from  ffb86926275228436d4598ee8f33ab948c45ae2b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=0a5e717f665864025aa0abc14898b5bc33fd574e


commit 0a5e717f665864025aa0abc14898b5bc33fd574e
Author: Bastiaan Jacques <address@hidden>
Date:   Tue Sep 3 11:09:48 2013 +0200

    Use toInt instead of toNumber to avoid the double to int cast, which for
    negative values yields zero on armhf.

diff --git a/libcore/asobj/String_as.cpp b/libcore/asobj/String_as.cpp
index a7631fb..5a5231c 100644
--- a/libcore/asobj/String_as.cpp
+++ b/libcore/asobj/String_as.cpp
@@ -579,7 +579,7 @@ string_charCodeAt(const fn_call& fn)
         }
     )
 
-    size_t index = static_cast<size_t>(toNumber(fn.arg(0), getVM(fn)));
+    size_t index = static_cast<size_t>(toInt(fn.arg(0), getVM(fn)));
 
     if (index >= wstr.length()) {
         as_value rv;

-----------------------------------------------------------------------

Summary of changes:
 libcore/asobj/String_as.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]