Fix warning about signed/unsigned comparison.

This commit is contained in:
Andreas Gal 2008-08-21 11:40:56 -07:00
parent ee5f8e441f
commit 80088cd777

View File

@ -578,7 +578,7 @@ nativeStackSlots(JSContext *cx, unsigned callDepth)
#endif
for (;;) {
unsigned operands = fp->regs->sp - StackBase(fp);
JS_ASSERT(operands <= fp->script->nslots - fp->script->nfixed);
JS_ASSERT(operands <= unsigned(fp->script->nslots - fp->script->nfixed));
slots += operands;
if (fp->callee)
slots += fp->script->nfixed;