diff options
Diffstat (limited to 'base/location.h')
-rw-r--r-- | base/location.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/base/location.h b/base/location.h index 477dc02227..d3bb23c63e 100644 --- a/base/location.h +++ b/base/location.h @@ -5,11 +5,12 @@ #ifndef BASE_LOCATION_H_ #define BASE_LOCATION_H_ +#include <stddef.h> + #include <cassert> #include <string> #include "base/base_export.h" -#include "base/basictypes.h" #include "base/containers/hash_tables.h" namespace tracked_objects { @@ -58,11 +59,7 @@ class BASE_EXPORT Location { // it comes from __FILE__, so no need to check the contents of the string. // See the definition of FROM_HERE in location.h, and how it is used // elsewhere. - - // Due to inconsistent definitions of uint64_t and uintptr_t, casting the - // file name pointer to a uintptr_t causes a compiler error for some - // platforms. The solution is to explicitly cast it to a uint64_t. - return base::HashPair(reinterpret_cast<uint64_t>(location.file_name()), + return base::HashPair(reinterpret_cast<uintptr_t>(location.file_name()), location.line_number()); } }; |