зеркало из https://github.com/mozilla/pjs.git
Bug 742788: Fix two 'warning: comparison of unsigned expression >= 0 is always true' in js. r=luke
This commit is contained in:
Родитель
92abc233ae
Коммит
7e16257dea
|
@ -951,7 +951,6 @@ LeaveWith(JSContext *cx)
|
||||||
{
|
{
|
||||||
WithObject &withobj = cx->fp()->scopeChain().asWith();
|
WithObject &withobj = cx->fp()->scopeChain().asWith();
|
||||||
JS_ASSERT(withobj.maybeStackFrame() == js_FloatingFrameIfGenerator(cx, cx->fp()));
|
JS_ASSERT(withobj.maybeStackFrame() == js_FloatingFrameIfGenerator(cx, cx->fp()));
|
||||||
JS_ASSERT(withobj.stackDepth() >= 0);
|
|
||||||
withobj.setStackFrame(NULL);
|
withobj.setStackFrame(NULL);
|
||||||
cx->fp()->setScopeChainNoCallObj(withobj.enclosingScope());
|
cx->fp()->setScopeChainNoCallObj(withobj.enclosingScope());
|
||||||
}
|
}
|
||||||
|
|
|
@ -775,7 +775,7 @@ Sprinter::stringAt(ptrdiff_t off) const
|
||||||
char &
|
char &
|
||||||
Sprinter::operator[](size_t off)
|
Sprinter::operator[](size_t off)
|
||||||
{
|
{
|
||||||
JS_ASSERT(off >= 0 && (size_t) off < size);
|
JS_ASSERT(off < size);
|
||||||
return *(base + off);
|
return *(base + off);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче