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.
This commit is contained in:
PulkoMandy 2014-04-19 10:07:39 +02:00
parent 744dfa3c4c
commit 2c8f0c5015

View File

@ -110,7 +110,7 @@ main(int argc, const char* const* argv)
// close the braces and write the size variable // close the braces and write the size variable
sprintf(lineBuffer, "};\nlong long %s = %lldLL;\n", sizeVarName, sprintf(lineBuffer, "};\nlong long %s = %lldLL;\n", sizeVarName,
dataSize); (long long)dataSize);
write_string(outFD, lineBuffer); write_string(outFD, lineBuffer);
close(inFD); close(inFD);