Bug 732306: Remove typedef jsint, r=luke

This commit is contained in:
David Mandelin
2012-03-01 18:54:01 -08:00
parent b4fa9d42ec
commit 197f344254
39 changed files with 207 additions and 212 deletions

View File

@@ -426,9 +426,9 @@ js::VectorToIdArray(JSContext *cx, AutoIdVector &props, JSIdArray **idap)
if (!ida)
return false;
ida->length = static_cast<jsint>(len);
ida->length = static_cast<int>(len);
jsid *v = props.begin();
for (jsint i = 0; i < ida->length; i++)
for (int i = 0; i < ida->length; i++)
ida->vector[i].init(v[i]);
*idap = ida;
return true;
@@ -1274,7 +1274,7 @@ js_IteratorNext(JSContext *cx, JSObject *iterobj, Value *rval)
return true;
JSString *str;
jsint i;
int i;
if (rval->isInt32() && StaticStrings::hasInt(i = rval->toInt32())) {
str = cx->runtime->staticStrings.getInt(i);
} else {