]> granicus.if.org Git - flex/commitdiff
generated code, here `new_size' is of type `int', fix casts accordingly
authorrlar <rlar>
Sun, 28 Feb 2016 14:20:31 +0000 (15:20 +0100)
committerWill Estes <westes575@gmail.com>
Sat, 12 Mar 2016 19:23:30 +0000 (14:23 -0500)
src/flex.skl

index 2c25d21eac45fa05687922f85a17775e0c97d939..540ce9500b25c68c88da2b5b51b10add6fce8738 100644 (file)
@@ -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()" );
        }