gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/server array.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash/server array.cpp
Date: Tue, 21 Nov 2006 10:05:18 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/11/21 10:05:18

Modified files:
        server         : array.cpp 

Log message:
        more cleanups for Array.slice

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/array.cpp?cvsroot=gnash&r1=1.42&r2=1.43

Patches:
Index: array.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/array.cpp,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- array.cpp   21 Nov 2006 09:47:12 -0000      1.42
+++ array.cpp   21 Nov 2006 10:05:18 -0000      1.43
@@ -307,7 +307,7 @@
 
        size_t newsize = one_past_end - start + 1;
 
-       if ( newsize < elements.size() )
+       if ( newsize > elements.size() )
        {
                // Not wrapped in IF_VERBOSE_ASCODING_ERROR
                // as I think we should support this somehow
@@ -713,9 +713,12 @@
        // if it's still negative, this is a problem
        if (startindex < 0 || (unsigned int)startindex > array->size())
        {
-               log_error("Bad startindex sent to array_slice! startindex: %s, 
Length: %d. "
+               IF_VERBOSE_ASCODING_ERRORS(
+               log_warning("Bad startindex sent to array_slice! "
+                       "StartIndex: %s, Length: %d. "
                        "Ignoring call.",
                        fn.arg(0).to_string(),array->size());
+               );
                return;                         
        }
        // if we sent at least two arguments, setup endindex




reply via email to

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