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:
@@ -26,8 +26,8 @@
|
|||||||
|
|
||||||
//#define AGG_DBG_NEW_CHECK_ADDR
|
//#define AGG_DBG_NEW_CHECK_ADDR
|
||||||
|
|
||||||
void* operator new (unsigned size, const char* file, int line);
|
void* operator new (size_t 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);
|
||||||
#define AGG_DBG_NEW_OPERATOR new(__FILE__, __LINE__)
|
#define AGG_DBG_NEW_OPERATOR new(__FILE__, __LINE__)
|
||||||
|
|
||||||
void operator delete(void *ptr) throw();
|
void operator delete(void *ptr) throw();
|
||||||
|
|||||||
@@ -479,13 +479,13 @@ namespace agg
|
|||||||
#endif
|
#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);
|
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);
|
return agg::dbg_malloc(size, file, line);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user