From b26f2b08c9d550158e3e761fac38b42f37f53ca6 Mon Sep 17 00:00:00 2001 From: chatty Date: Mon, 17 May 1993 15:28:09 +0000 Subject: Fixed bug in CcuListOf::Remove (func, int): wrong cast --- utils/List.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/List.h b/utils/List.h index 869f220..98311a9 100644 --- a/utils/List.h +++ b/utils/List.h @@ -134,7 +134,7 @@ inline CcuListOf& operator << (ITEM* it) { CcuList::Append (it); return *this; } inline ITEM* RemoveFirst () { return (ITEM*) (CcuList::RemoveFirst ()); } inline ITEM* RemoveLast () { return (ITEM*) (CcuList::RemoveLast ()); } inline int Remove (ITEM* it, int nb = 1) { return CcuList::Remove (it, nb); } -inline int Remove (int (*p) (ITEM*), int nb = 1) { return CcuList::Remove ((int (*) (ITEM*)) p, nb); } +inline int Remove (int (*p) (ITEM*), int nb = 1) { return CcuList::Remove ((int (*) (void*)) p, nb); } inline void InsertAfter (const CcuListIterOf & li, ITEM*it) { CcuList::InsertAfter (li, it); } inline void InsertBefore (const CcuListIterOf & li, ITEM* it) { CcuList::InsertBefore (li, it); } -- cgit v1.1