This commit is contained in:
rogerl%netscape.com 2001-10-16 19:14:16 +00:00
Родитель 24391bf195
Коммит 6407d1e671
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -253,7 +253,7 @@ static JSValue String_indexOf(Context *cx, const JSValue& thisValue, JSValue *ar
if (arg1 < 0)
pos = 0;
else
if (arg1 >= str->size())
if ((uint32)arg1 >= str->size())
pos = str->size();
else
pos = arg1;