Skip to content

Commit da6da54

Browse files
authored
fix warning: signed and unsigned type in conditional expression
1 parent 348e38f commit da6da54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsparse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ NO_INLINE JsVar *jspeFunctionCall(JsVar *function, JsVar *functionName, JsVar *t
507507
while (jsvIsFunctionParameter(param)) {
508508
if ((unsigned)argCount>=argPtrSize) {
509509
// allocate more space on stack if needed
510-
unsigned int newArgPtrSize = (argPtrSize?argPtrSize:argCount)*4;
510+
unsigned int newArgPtrSize = (argPtrSize?argPtrSize:(unsigned int)argCount)*4;
511511
size_t newArgPtrByteSize = sizeof(JsVar*)*newArgPtrSize;
512512
if (jsuGetFreeStack() < 256+newArgPtrByteSize) {
513513
jsExceptionHere(JSET_ERROR, "Insufficient stack for this many arguments");

0 commit comments

Comments
 (0)