From 7a0e86b187b77d8dc553cdc74ca695caae872f5c Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Wed, 30 Jun 2004 21:51:32 +0000 Subject: [PATCH] * src/base/cl_macros.h: alloca(3) has size_t argument type. --- ChangeLog | 4 ++++ src/base/cl_macros.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 69b6e18..ae324b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-05-28 Ralf Wildenhues + + * src/base/cl_macros.h: alloca(3) has size_t argument type. + 2004-05-28 Ralf Wildenhues * include/cln/floatformat.h: Do define a type here. diff --git a/src/base/cl_macros.h b/src/base/cl_macros.h index 29787c0..8c160e9 100644 --- a/src/base/cl_macros.h +++ b/src/base/cl_macros.h @@ -95,7 +95,7 @@ namespace cln { #if defined(__osf__) extern "C" char* alloca (int size); #else - extern "C" void* alloca (int size); + extern "C" void* alloca (size_t size); #endif #endif #elif defined(_AIX) @@ -103,7 +103,7 @@ namespace cln { #elif defined(WATCOM) #include // defines `alloca' as a macro #elif !defined(NO_ALLOCA) - extern "C" void* alloca (int size); + extern "C" void* alloca (size_t size); #endif // NULL pointer.