libagg: use size_t for operator new argument

Fix Clang 14 build.

Change-Id: Iad914d4be13f19e60a2ad708321cd04db5096d09
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5245
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
X512
2022-04-23 19:55:31 +00:00
committed by waddlesplash
parent 11e682bebb
commit 9e19c5aea4
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -26,8 +26,8 @@
//#define AGG_DBG_NEW_CHECK_ADDR
void* operator new (unsigned size, const char* file, int line);
void* operator new [] (unsigned size, const char* file, int line);
void* operator new (size_t size, const char* file, int line);
void* operator new [] (size_t size, const char* file, int line);
#define AGG_DBG_NEW_OPERATOR new(__FILE__, __LINE__)
void operator delete(void *ptr) throw();
+2 -2
View File
@@ -479,13 +479,13 @@ namespace agg
#endif
//----------------------------------------------------------------------------
void* operator new (unsigned size, const char* file, int line)
void* operator new (size_t size, const char* file, int line)
{
return agg::dbg_malloc(size, file, line);
}
//----------------------------------------------------------------------------
void* operator new [] (unsigned size, const char* file, int line)
void* operator new [] (size_t size, const char* file, int line)
{
return agg::dbg_malloc(size, file, line);
}