gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog server/as_environment.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog server/as_environment.cpp
Date: Wed, 18 Oct 2006 13:49:11 +0000

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

Modified files:
        .              : ChangeLog 
        server         : as_environment.cpp 

Log message:
                * server/as_environment.cpp: fix signed/unsigned comparison 
warning,
                  fixed a small typo in debugging message.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1293&r2=1.1294
http://cvs.savannah.gnu.org/viewcvs/gnash/server/as_environment.cpp?cvsroot=gnash&r1=1.21&r2=1.22

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1293
retrieving revision 1.1294
diff -u -b -r1.1293 -r1.1294
--- ChangeLog   18 Oct 2006 13:17:00 -0000      1.1293
+++ ChangeLog   18 Oct 2006 13:49:11 -0000      1.1294
@@ -1,5 +1,7 @@
 2006-10-18 Sandro Santilli <address@hidden>
 
+       * server/as_environment.cpp: fix signed/unsigned comparison warning,
+         fixed a small typo in debugging message.
        * libbase/log.: always check for SIZEOF_SIZE_T == SIZEOF_INT
          before comparing against SIZEOF_LONG and SIZEOF_SHORT.
        * configure.ac: print an error on invalid --enable-sound value.

Index: server/as_environment.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/as_environment.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- server/as_environment.cpp   17 Oct 2006 20:50:37 -0000      1.21
+++ server/as_environment.cpp   18 Oct 2006 13:49:11 -0000      1.22
@@ -34,7 +34,7 @@
 // forward this exception.
 //
 
-/* $Id: as_environment.cpp,v 1.21 2006/10/17 20:50:37 nihilus Exp $ */
+/* $Id: as_environment.cpp,v 1.22 2006/10/18 13:49:11 strk Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -98,8 +98,8 @@
     as_value   val;
 
     // Check the with-stack.
-    for (int i = with_stack.size() - 1; i >= 0; i--) {
-       as_object*      obj = with_stack[i].m_object.get_ptr();
+    for (size_t i = with_stack.size(); i > 0; --i) {
+       as_object* obj = with_stack[i-1].m_object.get_ptr();
        if (obj && obj->get_member(varname, &val)) {
            // Found the var in this context.
            return val;
@@ -137,7 +137,7 @@
     
     // Fallback.
        IF_VERBOSE_ACTION (
-    log_action("get_variable_raw(\"%s\" failed, returning UNDEFINED.",
+    log_action("get_variable_raw(\"%s\" failed, returning UNDEFINED.)",
               varname.c_str());
        );
 




reply via email to

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