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
This commit is contained in:
parent
c23dbc1928
commit
5ffd6a6137
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user