[Freeswitch-svn] [commit] r11521 - freeswitch/trunk/libs/js/src

FreeSWITCH SVN mikej at freeswitch.org
Tue Jan 27 15:15:42 PST 2009


Author: mikej
Date: Tue Jan 27 17:15:42 2009
New Revision: 11521

Log:
libjs: fix build warning under gcc 4.3

Modified:
   freeswitch/trunk/libs/js/src/jsapi.c

Modified: freeswitch/trunk/libs/js/src/jsapi.c
==============================================================================
--- freeswitch/trunk/libs/js/src/jsapi.c	(original)
+++ freeswitch/trunk/libs/js/src/jsapi.c	Tue Jan 27 17:15:42 2009
@@ -4076,12 +4076,13 @@
 {
     jschar *chars;
     JSBool ok;
+	size_t slength = length;
 
     CHECK_REQUEST(cx);
-    chars = js_InflateString(cx, bytes, &length);
+    chars = js_InflateString(cx, bytes, &slength);
     if (!chars)
         return JS_FALSE;
-    ok = JS_EvaluateUCScript(cx, obj, chars, length, filename, lineno, rval);
+    ok = JS_EvaluateUCScript(cx, obj, chars, slength, filename, lineno, rval);
     JS_free(cx, chars);
     return ok;
 }
@@ -4095,12 +4096,13 @@
 {
     jschar *chars;
     JSBool ok;
+	size_t slength = length;
 
     CHECK_REQUEST(cx);
-    chars = js_InflateString(cx, bytes, &length);
+    chars = js_InflateString(cx, bytes, &slength);
     if (!chars)
         return JS_FALSE;
-    ok = JS_EvaluateUCScriptForPrincipals(cx, obj, principals, chars, length,
+    ok = JS_EvaluateUCScriptForPrincipals(cx, obj, principals, chars, slength,
                                           filename, lineno, rval);
     JS_free(cx, chars);
     return ok;



More information about the Freeswitch-svn mailing list