зеркало из https://github.com/mozilla/pjs.git
More Windows warning fixes.
This commit is contained in:
Родитель
b165c781ed
Коммит
9d7e216a54
|
@ -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;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче