diff options
author | chatty | 1993-12-22 12:24:30 +0000 |
---|---|---|
committer | chatty | 1993-12-22 12:24:30 +0000 |
commit | 9ee441b8c64cbd39bdd79e9f55e8388390ea6e14 (patch) | |
tree | c6ed7926ad96372c861825ebd2db7318d9a6bfce /utils | |
parent | 1c7635febcaa6fb0f1308c53d90fd36ea598372a (diff) | |
download | ivy-league-9ee441b8c64cbd39bdd79e9f55e8388390ea6e14.zip ivy-league-9ee441b8c64cbd39bdd79e9f55e8388390ea6e14.tar.gz ivy-league-9ee441b8c64cbd39bdd79e9f55e8388390ea6e14.tar.bz2 ivy-league-9ee441b8c64cbd39bdd79e9f55e8388390ea6e14.tar.xz |
changed arg of operator new
Diffstat (limited to 'utils')
-rw-r--r-- | utils/DList.cc | 6 | ||||
-rw-r--r-- | utils/SmartPointer.cc | 2 | ||||
-rw-r--r-- | 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 (); |