summaryrefslogtreecommitdiffstats
path: root/updater/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-09-24 19:56:48 +0200
committerTao Bao <tbao@google.com>2015-09-24 20:06:58 +0200
commit5701d5829de3915e9de0f27a64554297ba88c8a4 (patch)
treee0c34a02537d63d09a99ff841fbddf4f0ecd39d7 /updater/install.cpp
parentMerge "minadbd: move from D() to VLOG()." (diff)
downloadandroid_bootable_recovery-5701d5829de3915e9de0f27a64554297ba88c8a4.tar
android_bootable_recovery-5701d5829de3915e9de0f27a64554297ba88c8a4.tar.gz
android_bootable_recovery-5701d5829de3915e9de0f27a64554297ba88c8a4.tar.bz2
android_bootable_recovery-5701d5829de3915e9de0f27a64554297ba88c8a4.tar.lz
android_bootable_recovery-5701d5829de3915e9de0f27a64554297ba88c8a4.tar.xz
android_bootable_recovery-5701d5829de3915e9de0f27a64554297ba88c8a4.tar.zst
android_bootable_recovery-5701d5829de3915e9de0f27a64554297ba88c8a4.zip
Diffstat (limited to '')
-rw-r--r--updater/install.cpp2
1 files changed, 1 insertions, 1 deletions
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<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);