diff --git a/js/js2/jstypes.cpp b/js/js2/jstypes.cpp index 5967c4d4a9bd..e85fb4d0a389 100644 --- a/js/js2/jstypes.cpp +++ b/js/js2/jstypes.cpp @@ -257,7 +257,7 @@ JSObject *JSArray::ArrayPrototypeObject = NULL; static JSValue array_constructor(Context *, const JSValues& argv) { // argv[0] will be NULL - int argCount = argv.size(); + uint32 argCount = argv.size(); if (argCount > 1) if (argCount > 2) { // then it's a bunch of elements JSArray *result = new JSArray(argCount - 1); diff --git a/js2/src/jstypes.cpp b/js2/src/jstypes.cpp index 5967c4d4a9bd..e85fb4d0a389 100644 --- a/js2/src/jstypes.cpp +++ b/js2/src/jstypes.cpp @@ -257,7 +257,7 @@ JSObject *JSArray::ArrayPrototypeObject = NULL; static JSValue array_constructor(Context *, const JSValues& argv) { // argv[0] will be NULL - int argCount = argv.size(); + uint32 argCount = argv.size(); if (argCount > 1) if (argCount > 2) { // then it's a bunch of elements JSArray *result = new JSArray(argCount - 1);