From 2c8f0c50152325a3c2415db787b0a35f34d752a4 Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Sat, 19 Apr 2014 10:07:39 +0200 Subject: [PATCH] Fix compile error on 64-bit machines. * This is built for the host system, so we can't use B_PRIdOFF. * Until POSIX introduces a format constant for off_t, cast the variable to long long to avoid a warning. --- src/tools/data_to_source.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/data_to_source.cpp b/src/tools/data_to_source.cpp index 9d7650d97c..c1dceb95e9 100644 --- a/src/tools/data_to_source.cpp +++ b/src/tools/data_to_source.cpp @@ -110,7 +110,7 @@ main(int argc, const char* const* argv) // close the braces and write the size variable sprintf(lineBuffer, "};\nlong long %s = %lldLL;\n", sizeVarName, - dataSize); + (long long)dataSize); write_string(outFD, lineBuffer); close(inFD);