Fix MSVC warnings about assigning a wider variable into a narrower one resulting from the checkin for bug 338678. r=brendan

This commit is contained in:
mrbkap%gmail.com 2006-05-24 21:07:55 +00:00
Родитель 68d82c8fad
Коммит 19bfba4f52
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -3695,7 +3695,7 @@ JS_DefineFunctions(JSContext *cx, JSObject *obj, JSFunctionSpec *fs)
fs->nargs + 1, flags);
if (!fun)
return JS_FALSE;
fun->u.n.extra = fs->extra;
fun->u.n.extra = (uint16)fs->extra;
/*
* As jsapi.h notes, fs must point to storage that lives as long
@ -3708,7 +3708,7 @@ JS_DefineFunctions(JSContext *cx, JSObject *obj, JSFunctionSpec *fs)
fun = JS_DefineFunction(cx, obj, fs->name, fs->call, fs->nargs, flags);
if (!fun)
return JS_FALSE;
fun->u.n.extra = fs->extra;
fun->u.n.extra = (uint16)fs->extra;
}
return JS_TRUE;
}