From 403124f9e2e31b8752f7835f3c86f4e91c20ed4e Mon Sep 17 00:00:00 2001 From: "benchan@chromium.org" Date: Fri, 27 Jan 2012 05:23:23 +0000 Subject: Fix test addresses to use uintptr_t instead of u_int64_t. When a variable is used to set (and lookup) MappingInfo's "start_addr" field, it needs to match types -- which is "uintptr_t". When Chrome OS updated the 'make' that's used for building, the 32-bit "char *" had sign-extended when cast up to a u_int64_t -- maybe because pointers were unsigned before and then changed to be signed -- and that caused the address lookup to fail. BUG=chromium-os:25355 TEST=Ran Breakpad unittests A=mkrebs@chromium.org Review URL: http://breakpad.appspot.com/345001 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@908 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/linux/handler/exception_handler_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/linux/handler') diff --git a/src/client/linux/handler/exception_handler_unittest.cc b/src/client/linux/handler/exception_handler_unittest.cc index 73e5c4c2..f8024f26 100644 --- a/src/client/linux/handler/exception_handler_unittest.cc +++ b/src/client/linux/handler/exception_handler_unittest.cc @@ -626,7 +626,7 @@ TEST(ExceptionHandlerTest, ModuleInfo) { MAP_PRIVATE | MAP_ANON, -1, 0)); - const u_int64_t kMemoryAddress = reinterpret_cast(memory); + const uintptr_t kMemoryAddress = reinterpret_cast(memory); ASSERT_TRUE(memory); string minidump_filename; -- cgit v1.2.1