pkgsrc/lang/ossp-js/patches/patch-af
2008-04-04 01:56:16 +00:00

22 lines
806 B
Text

$NetBSD: patch-af,v 1.1 2008/04/04 01:56:16 bjs Exp $
--- src/jsapi.c.orig 2007-02-08 04:39:05.000000000 -0500
+++ src/jsapi.c
@@ -4078,7 +4078,7 @@ JS_EvaluateScript(JSContext *cx, JSObjec
JSBool ok;
CHECK_REQUEST(cx);
- chars = js_InflateString(cx, bytes, &length);
+ chars = js_InflateString(cx, bytes, (size_t *)&length);
if (!chars)
return JS_FALSE;
ok = JS_EvaluateUCScript(cx, obj, chars, length, filename, lineno, rval);
@@ -4097,7 +4097,7 @@ JS_EvaluateScriptForPrincipals(JSContext
JSBool ok;
CHECK_REQUEST(cx);
- chars = js_InflateString(cx, bytes, &length);
+ chars = js_InflateString(cx, bytes, (size_t *)&length);
if (!chars)
return JS_FALSE;
ok = JS_EvaluateUCScriptForPrincipals(cx, obj, principals, chars, length,