Commit 5ffd6a61 authored by ager@chromium.org's avatar ager@chromium.org

Apply Jeff Bailey's patch to use %p instead of %i to print pointer

values.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1128 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent c23dbc19
......@@ -136,9 +136,9 @@ static inline void CheckEqualsHelper(const char* file,
void* value) {
if (expected != value) {
V8_Fatal(file, line,
"CHECK_EQ(%s, %s) failed\n# Expected: %i\n# Found: %i",
"CHECK_EQ(%s, %s) failed\n# Expected: %p\n# Found: %p",
expected_source, value_source,
reinterpret_cast<int>(expected), reinterpret_cast<int>(value));
expected, value);
}
}
......@@ -150,8 +150,8 @@ static inline void CheckNonEqualsHelper(const char* file,
const char* value_source,
void* value) {
if (expected == value) {
V8_Fatal(file, line, "CHECK_NE(%s, %s) failed\n# Value: %i",
expected_source, value_source, reinterpret_cast<int>(value));
V8_Fatal(file, line, "CHECK_NE(%s, %s) failed\n# Value: %p",
expected_source, value_source, value);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment