[Freeswitch-svn] [commit] r11522 - freeswitch/trunk/libs/js/src
FreeSWITCH SVN
mikej at freeswitch.org
Tue Jan 27 15:20:23 PST 2009
Author: mikej
Date: Tue Jan 27 17:20:23 2009
New Revision: 11522
Log:
libjs: fix build warning under gcc 4.3
Modified:
freeswitch/trunk/libs/js/src/jsapi.c
freeswitch/trunk/libs/js/src/jsdbgapi.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:20:23 2009
@@ -4574,12 +4574,13 @@
#if JS_HAS_REGEXPS
jschar *chars;
JSObject *obj;
+ size_t slength = length;
CHECK_REQUEST(cx);
- chars = js_InflateString(cx, bytes, &length);
+ chars = js_InflateString(cx, bytes, &slength);
if (!chars)
return NULL;
- obj = js_NewRegExpObject(cx, NULL, chars, length, flags);
+ obj = js_NewRegExpObject(cx, NULL, chars, slength, flags);
JS_free(cx, chars);
return obj;
#else
Modified: freeswitch/trunk/libs/js/src/jsdbgapi.c
==============================================================================
--- freeswitch/trunk/libs/js/src/jsdbgapi.c (original)
+++ freeswitch/trunk/libs/js/src/jsdbgapi.c Tue Jan 27 17:20:23 2009
@@ -939,11 +939,12 @@
{
jschar *chars;
JSBool ok;
+ size_t slength = length;
- chars = js_InflateString(cx, bytes, &length);
+ chars = js_InflateString(cx, bytes, &slength);
if (!chars)
return JS_FALSE;
- ok = JS_EvaluateUCInStackFrame(cx, fp, chars, length, filename, lineno,
+ ok = JS_EvaluateUCInStackFrame(cx, fp, chars, slength, filename, lineno,
rval);
JS_free(cx, chars);
More information about the Freeswitch-svn
mailing list