From 3d08a0129229e99e1bcaa33d024e9cb0c27d903c Mon Sep 17 00:00:00 2001 From: Michael McConville Date: Wed, 9 Dec 2015 16:14:41 -0500 Subject: [PATCH] Removed memory allocation casts. --- src/flex.skl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flex.skl b/src/flex.skl index a5111be..b63c8c8 100644 --- a/src/flex.skl +++ b/src/flex.skl @@ -3083,7 +3083,7 @@ void *yyalloc YYFARGS1( yy_size_t ,size) { M4_YY_DECL_GUTS_VAR(); M4_YY_NOOP_GUTS_VAR(); - return (void *) malloc( size ); + return malloc(size); } ]]) @@ -3101,7 +3101,7 @@ void *yyrealloc YYFARGS2( void *,ptr, yy_size_t ,size) * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ - return (void *) realloc( (char *) ptr, size ); + return realloc(ptr, size); } ]]) -- 2.40.0