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:
parent
b2e5fffdaf
commit
8b26bb2761
@ -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 { \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user