Use 0 - i rather than -i to avoid unsigned warning on Windows.

git-svn-id: svn://10.0.0.236/trunk@81982 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org 2000-10-29 18:08:40 +00:00
parent b2e5fffdaf
commit 8b26bb2761

View File

@ -1717,7 +1717,7 @@ js_FreeSlot(JSContext *cx, JSObject *obj, uint32 slot)
(_oldIndex < (JSVAL_INT_MAX / 10) || \
(_oldIndex == (JSVAL_INT_MAX / 10) && \
_c <= (JSVAL_INT_MAX % 10)))) { \
if (_negative) _index = -_index; \
if (_negative) _index = 0 - _index; \
id = INT_TO_JSVAL((jsint)_index); \
} \
} else { \