This commit is contained in:
brendan%mozilla.org 2006-03-22 01:39:40 +00:00
Родитель b165c781ed
Коммит 9d7e216a54
2 изменённых файлов: 3 добавлений и 2 удалений

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

@ -2459,7 +2459,7 @@ snarf(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
buf = JS_malloc(cx, len + 1); buf = JS_malloc(cx, len + 1);
if (!buf) { if (!buf) {
ok = JS_FALSE; ok = JS_FALSE;
} else if ((cc = read(fd, buf, len)) != len) { } else if ((size_t)(cc = read(fd, buf, len)) != len) {
JS_free(cx, buf); JS_free(cx, buf);
JS_ReportError(cx, "can't read %s: %s", pathname, JS_ReportError(cx, "can't read %s: %s", pathname,
(cc < 0) ? strerror(errno) : "short read"); (cc < 0) ? strerror(errno) : "short read");

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

@ -785,7 +785,8 @@ JSBool
js_LockGCThingRT(JSRuntime *rt, void *thing) js_LockGCThingRT(JSRuntime *rt, void *thing)
{ {
JSBool ok, deep; JSBool ok, deep;
uint8 *flagp, flags, lock, type; uint8 *flagp;
uintN flags, lock, type;
JSGCLockHashEntry *lhe; JSGCLockHashEntry *lhe;
ok = JS_TRUE; ok = JS_TRUE;