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

Unified Diff: third_party/tcmalloc/chromium/src/malloc_hook-inl.h

Issue 7033062: Replaced ptrdiff_t with std::ptrdiff_t in all files to enable build with gcc-4.6.0. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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: third_party/tcmalloc/chromium/src/malloc_hook-inl.h
===================================================================
--- third_party/tcmalloc/chromium/src/malloc_hook-inl.h (revision 88058)
+++ third_party/tcmalloc/chromium/src/malloc_hook-inl.h (working copy)
@@ -170,7 +170,7 @@
return base::internal::presbrk_hook_.Get();
}
-inline void MallocHook::InvokePreSbrkHook(ptrdiff_t increment) {
+inline void MallocHook::InvokePreSbrkHook(std::ptrdiff_t increment) {
MallocHook::PreSbrkHook hook = MallocHook::GetPreSbrkHook();
if (hook != NULL && increment != 0) (*hook)(increment);
}
@@ -180,7 +180,7 @@
}
inline void MallocHook::InvokeSbrkHook(const void* result,
- ptrdiff_t increment) {
+ std::ptrdiff_t increment) {
MallocHook::SbrkHook hook = MallocHook::GetSbrkHook();
if (hook != NULL && increment != 0) (*hook)(result, increment);
}
« no previous file with comments | « third_party/tcmalloc/chromium/src/malloc_hook.cc ('k') | third_party/tcmalloc/chromium/src/memory_region_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698