mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 21:25:35 +00:00
Windows lacks ssize_t, who knew?
This commit is contained in:
parent
4f97c5fdca
commit
befbfc8d34
@ -3007,7 +3007,7 @@ Snarf(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
|
||||
if (cc != len) {
|
||||
JS_free(cx, buf);
|
||||
JS_ReportError(cx, "can't read %s: %s", pathname,
|
||||
(ssize_t(cc) < 0) ? strerror(errno) : "short read");
|
||||
(ptrdiff_t(cc) < 0) ? strerror(errno) : "short read");
|
||||
} else {
|
||||
len = (size_t)cc;
|
||||
ok = JS_TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user