Skip to content

Commit 0080d8f

Browse files
authored
Merge pull request #1504 from espruino/MaBecker-patch-1
fix warning: signed and unsigned type in conditional expression
2 parents 348e38f + da6da54 commit 0080d8f

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)