From 9ee441b8c64cbd39bdd79e9f55e8388390ea6e14 Mon Sep 17 00:00:00 2001 From: chatty Date: Wed, 22 Dec 1993 12:24:30 +0000 Subject: changed arg of operator new --- utils/DList.cc | 6 +++--- utils/SmartPointer.cc | 2 +- utils/SmartPointer.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/DList.cc b/utils/DList.cc index 711a32c..97d6539 100644 --- a/utils/DList.cc +++ b/utils/DList.cc @@ -37,7 +37,7 @@ public: CcuDListLink* Next; inline CcuDListLink (CcuDListItem* e, CcuDListLink* p) : Entry (e), Previous (p), Next (p->Next) { Previous->Next = Next->Previous = this; } inline CcuDListLink (CcuDListItem* e) : Entry (e), Previous (this), Next (this) {} - void* operator new (unsigned int); + void* operator new (unsigned long); void operator delete (void*); }; #endif @@ -52,9 +52,9 @@ CcuAllocator* CcuDList::CcuDListLink::DListLinkMem = 0; /*?nodoc?*/ void* #ifdef CPLUS_BUG20 -CcuDListLink :: operator new (unsigned int) +CcuDListLink :: operator new (unsigned long) #else -CcuDList::CcuDListLink :: operator new (unsigned int) +CcuDList::CcuDListLink :: operator new (unsigned long) #endif { if (!DListLinkMem) diff --git a/utils/SmartPointer.cc b/utils/SmartPointer.cc index 264a7e1..a0ddc04 100644 --- a/utils/SmartPointer.cc +++ b/utils/SmartPointer.cc @@ -44,7 +44,7 @@ should take care that \fun{new} sets the flag \var{CcuSmartData::NextCreatedIsDy ?*/ void* -CcuSmartData :: operator new (unsigned size) +CcuSmartData :: operator new (unsigned long size) { NextCreatedIsDynamic = 1; return ::operator new (size); diff --git a/utils/SmartPointer.h b/utils/SmartPointer.h index 90d1180..5b79bf7 100644 --- a/utils/SmartPointer.h +++ b/utils/SmartPointer.h @@ -32,7 +32,7 @@ protected: static int NextCreatedIsDynamic; public: - void* operator new (unsigned); + void* operator new (unsigned long); inline void operator delete (void* that) { ::delete (that); } CcuSmartData (); -- cgit v1.1