]> granicus.if.org Git - flex/commitdiff
Removed memory allocation casts.
authorMichael McConville <mmcconville@mykolab.com>
Wed, 9 Dec 2015 21:14:41 +0000 (16:14 -0500)
committerWill Estes <westes575@gmail.com>
Wed, 9 Dec 2015 22:33:58 +0000 (17:33 -0500)
src/flex.skl

index a5111be28d8f4af3e3d3e901cf3ef6d31e9647d5..b63c8c8591dd029adc1e1d2241c89c9d730f1c6b 100644 (file)
@@ -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);
 }
 ]])