Commit a518dffc authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

convert argument to size_t

parent 5447ebb7
......@@ -28,15 +28,15 @@ extern void Free (const char *caller, const char *file, int line, void *ptr
#endif
#if defined WITH_CALLER_NAME
# define realloc(x, y) Realloc(func, __FILE__, __LINE__, x, y)
# define calloc(x, y) Calloc(func, __FILE__, __LINE__, x, y)
# define malloc(x) Malloc(func, __FILE__, __LINE__, x)
# define free(x) Free(func, __FILE__, __LINE__, x)
# define realloc(p, s) Realloc(func, __FILE__, __LINE__, p, (size_t)s)
# define calloc(n, s) Calloc(func, __FILE__, __LINE__, n, (size_t)s)
# define malloc(s) Malloc(func, __FILE__, __LINE__, (size_t)s)
# define free(p) Free(func, __FILE__, __LINE__, p)
#else
# define realloc(x, y) Realloc((void *) NULL, __FILE__, __LINE__, x, y)
# define calloc(x, y) Calloc((void *) NULL, __FILE__, __LINE__, x, y)
# define malloc(x) Malloc((void *) NULL, __FILE__, __LINE__, x)
# define free(x) Free((void *) NULL, __FILE__, __LINE__, x)
# define realloc(p, s) Realloc((void *) NULL, __FILE__, __LINE__, p, (size_t)s)
# define calloc(n, s) Calloc((void *) NULL, __FILE__, __LINE__, n, (size_t)s)
# define malloc(s) Malloc((void *) NULL, __FILE__, __LINE__, (size_t)s)
# define free(p) Free((void *) NULL, __FILE__, __LINE__, p)
#endif
#endif /* DEBUG_MEMORY */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment