Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7488)

Unified Diff: chrome/common/ipc_message_utils.h

Issue 147154: Use C99 standard format macros for 64-bit values. (Closed)
Patch Set: ... Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/ipc_message_utils.h
diff --git a/chrome/common/ipc_message_utils.h b/chrome/common/ipc_message_utils.h
index 2ae2ab5cdbd4b244250f3720befd71cc9585c063..bcc849a869d1a43740d1d732d033d9a2424d2f81 100644
--- a/chrome/common/ipc_message_utils.h
+++ b/chrome/common/ipc_message_utils.h
@@ -10,8 +10,9 @@
#include <map>
#include "base/file_path.h"
-#include "base/string_util.h"
+#include "base/format_macros.h"
#include "base/string16.h"
+#include "base/string_util.h"
#include "base/tuple.h"
#if defined(OS_POSIX)
#include "chrome/common/file_descriptor_set_posix.h"
@@ -218,7 +219,7 @@ struct ParamTraits<int64> {
return m->ReadInt64(iter, r);
}
static void Log(const param_type& p, std::wstring* l) {
- l->append(StringPrintf(L"%I64d", p));
+ l->append(StringPrintf(L"%" WidePRId64, p));
}
};
@@ -232,7 +233,7 @@ struct ParamTraits<uint64> {
return m->ReadInt64(iter, reinterpret_cast<int64*>(r));
}
static void Log(const param_type& p, std::wstring* l) {
- l->append(StringPrintf(L"%I64u", p));
+ l->append(StringPrintf(L"%" WidePRId64, p));
}
};
« chrome/chrome.gyp ('K') | « chrome/chrome.gyp ('k') | net/base/cookie_monster.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698