From cd8eea620534db54e34e2755c270b37c2248564b Mon Sep 17 00:00:00 2001 From: Seigo Nonaka Date: Tue, 28 Jun 2016 18:35:48 +0900 Subject: [PATCH] Fix build failure of minikin_perftest stat.st_size is off_t not size_t, so need to cast to size_t before compare it. Change-Id: I6b742746fbb9f254701fc91e515c293f93f912c5 --- engine/src/flutter/tests/util/FileUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/tests/util/FileUtils.cpp b/engine/src/flutter/tests/util/FileUtils.cpp index dfe15225dd..68cc45cf4d 100644 --- a/engine/src/flutter/tests/util/FileUtils.cpp +++ b/engine/src/flutter/tests/util/FileUtils.cpp @@ -29,7 +29,7 @@ std::vector readWholeFile(const std::string& filePath) { LOG_ALWAYS_FATAL_IF(fstat(fileno(fp), &st) != 0); std::vector result(st.st_size); - LOG_ALWAYS_FATAL_IF(fread(result.data(), 1, st.st_size, fp) != st.st_size); + LOG_ALWAYS_FATAL_IF(fread(result.data(), 1, st.st_size, fp) != static_cast(st.st_size)); fclose(fp); return result; }