Closed GoogleCodeExporter closed 9 years ago
Committed as r167. For consistency with the for-loop immediately following, I
stuck with static_cast<int> and %d. This should fix your error, please confirm!
Index: offsetmap.cc
===================================================================
--- offsetmap.cc (revision 166)
+++ offsetmap.cc (working copy)
@@ -79,7 +79,7 @@
}
Flush(); // Make sure any pending entry gets printed
- fprintf(fout, "Offsetmap: %ld bytes\n", diffs_.size());
+ fprintf(fout, "Offsetmap: %d bytes\n", static_cast<int>(diffs_.size()));
for (int i = 0; i < static_cast<int>(diffs_.size()); ++i) {
fprintf(fout, "%c%02d ", "&=+-"[OpPart(diffs_[i])], LenPart(diffs_[i]));
if ((i % 20) == 19) {fprintf(fout, "\n");}
Original comment by andrewha...@google.com
on 19 Aug 2014 at 9:18
That was fast, thanks!
Original comment by thakis@chromium.org
on 19 Aug 2014 at 3:21
Original issue reported on code.google.com by
thakis@chromium.org
on 18 Aug 2014 at 2:24