From 986bb5e29492a927a2ad157505c900f75c97016a Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 28 Feb 2016 15:20:31 +0100 Subject: [PATCH] generated code, here `new_size' is of type `int', fix casts accordingly --- src/flex.skl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flex.skl b/src/flex.skl index 2c25d21..540ce95 100644 --- a/src/flex.skl +++ b/src/flex.skl @@ -1782,7 +1782,7 @@ m4_ifdef( [[M4_YY_USES_REJECT]], /* Extend the array by 50%, plus the number we really need. */ int new_size = YY_G(yy_n_chars) + number_to_move + (YY_G(yy_n_chars) >> 1); YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( - (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, new_size M4_YY_CALL_LAST_ARG ); + (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size M4_YY_CALL_LAST_ARG ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); } -- 2.40.0