diff options
author | Tao Bao <tbao@google.com> | 2015-09-24 10:56:48 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-07 19:21:20 -0800 |
commit | ac61bb9852d7e06c0dc3a00eb6d56b03267527d9 (patch) | |
tree | 98174de42df11980b27edfbd305f7aecc223ef0f /updater | |
parent | f17456d480d102e941c6dbd3eb29a2185c4c0811 (diff) | |
download | bootable_recovery-ac61bb9852d7e06c0dc3a00eb6d56b03267527d9.zip bootable_recovery-ac61bb9852d7e06c0dc3a00eb6d56b03267527d9.tar.gz bootable_recovery-ac61bb9852d7e06c0dc3a00eb6d56b03267527d9.tar.bz2 |
Suppress some compiler warnings due to signedness.
Change-Id: I63f28b3b4ba4185c23b972fc8f93517295b1672a
Diffstat (limited to 'updater')
-rw-r--r-- | updater/install.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/install.c b/updater/install.c index 29644fb..bae8959 100644 --- a/updater/install.c +++ b/updater/install.c @@ -1042,7 +1042,7 @@ Value* FileGetPropFn(const char* name, State* state, int argc, Expr* argv[]) { goto done; } - if (fread(buffer, 1, st.st_size, f) != st.st_size) { + if (fread(buffer, 1, st.st_size, f) != (size_t)st.st_size) { ErrorAbort(state, "%s: failed to read %lld bytes from %s", name, (long long)st.st_size+1, filename); fclose(f); |