Bug 791608 (part 5) - Fix compile warning about signed/unsigned comparison. r=jwalden.

--HG--
extra : rebase_source : a8b8c61addc606a0d17520f3cfac18762836c164
This commit is contained in:
Nicholas Nethercote 2012-09-17 17:18:32 -07:00
parent 93a99b2745
commit 43ec468195

View File

@ -407,7 +407,7 @@ SPSEntryMarker::~SPSEntryMarker()
JS_FRIEND_API(jsbytecode*)
ProfileEntry::pc() volatile {
JS_ASSERT_IF(idx != NullPCIndex, idx >= 0 && idx < script()->length);
JS_ASSERT_IF(idx != NullPCIndex, idx >= 0 && uint32_t(idx) < script()->length);
return idx == NullPCIndex ? NULL : script()->code + idx;
}