diff options
author | Nicolas BERNSTEIN <katchup@nicolas-bernsteins-acpi.local> | 2009-10-26 14:42:00 +0100 |
---|---|---|
committer | Nicolas BERNSTEIN <katchup@nicolas-bernsteins-acpi.local> | 2009-10-26 14:42:00 +0100 |
commit | d68a064819deaaa8e01eca3c7809050b25cedfbd (patch) | |
tree | 2d4692602b7ad7e1071b9b0a83a11d44181bafa0 /Source/Kernel/common.h | |
parent | d1ac6fb03e3110e35023f60f643f0c4d02c3d8b6 (diff) | |
download | Melon-d68a064819deaaa8e01eca3c7809050b25cedfbd.tar.gz Melon-d68a064819deaaa8e01eca3c7809050b25cedfbd.zip |
Made some minor changes, for compatibility
Diffstat (limited to 'Source/Kernel/common.h')
-rw-r--r-- | Source/Kernel/common.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Kernel/common.h b/Source/Kernel/common.h index 86d76cd..d35ba84 100644 --- a/Source/Kernel/common.h +++ b/Source/Kernel/common.h @@ -15,13 +15,13 @@ #include <MemoryManager/Mem.ns.h> //Standard implemenations of operator new/delete -inline void* operator new(u32int, void *p) { return p; } -inline void* operator new[](u32int, void *p) { return p; } +inline void* operator new(size_t, void *p) { return p; } +inline void* operator new[](size_t, void *p) { return p; } inline void operator delete(void*, void*) { } inline void operator delete[](void*, void*) { } -inline void* operator new(u32int sz) { return Mem::alloc(sz); } -inline void* operator new[](u32int sz) { return Mem::alloc(sz); } +inline void* operator new(size_t sz) { return Mem::alloc(sz); } +inline void* operator new[](size_t sz) { return Mem::alloc(sz); } inline void operator delete(void *ptr) { Mem::free(ptr); } inline void operator delete[](void *ptr) { Mem::free(ptr); } |