From 5701d5829de3915e9de0f27a64554297ba88c8a4 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Thu, 24 Sep 2015 10:56:48 -0700 Subject: Suppress some compiler warnings due to signedness. Change-Id: I63f28b3b4ba4185c23b972fc8f93517295b1672a --- updater/install.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'updater') diff --git a/updater/install.cpp b/updater/install.cpp index a6ed078ba..68c990241 100644 --- a/updater/install.cpp +++ b/updater/install.cpp @@ -990,7 +990,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) != static_cast(st.st_size)) { ErrorAbort(state, "%s: failed to read %lld bytes from %s", name, (long long)st.st_size+1, filename); fclose(f); -- cgit v1.2.3