1304c3
commit 33dd868353ab98bc33363d43be5a8b0e7e049072
1304c3
Author: rlar <rlar>
1304c3
Date:   Sun Feb 28 15:20:31 2016 +0100
1304c3
1304c3
    generated code, `yy_buf_size' is of type `int', fix casts accordingly
1304c3
1304c3
Index: b/src/flex.skl
1304c3
===================================================================
1304c3
--- a/src/flex.skl
1304c3
+++ b/src/flex.skl
1304c3
@@ -1732,7 +1732,7 @@ m4_ifdef( [[M4_YY_USES_REJECT]],
1304c3
 				b->yy_ch_buf = (char *)
1304c3
 					/* Include room in for 2 EOB chars. */
1304c3
 					yyrealloc( (void *) b->yy_ch_buf,
1304c3
-							 b->yy_buf_size + 2 M4_YY_CALL_LAST_ARG );
1304c3
+							 (yy_size_t) (b->yy_buf_size + 2) M4_YY_CALL_LAST_ARG );
1304c3
 				}
1304c3
 			else
1304c3
 				/* Can't grow it, we don't own it. */
1304c3
@@ -2102,12 +2102,12 @@ static void yy_load_buffer_state  YYFARG
1304c3
 	if ( ! b )
1304c3
 		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1304c3
 
1304c3
-	b->yy_buf_size = (yy_size_t)size;
1304c3
+	b->yy_buf_size = size;
1304c3
 
1304c3
 	/* yy_ch_buf has to be 2 characters longer than the size given because
1304c3
 	 * we need to put in 2 end-of-buffer characters.
1304c3
 	 */
1304c3
-	b->yy_ch_buf = (char *) yyalloc( b->yy_buf_size + 2 M4_YY_CALL_LAST_ARG );
1304c3
+	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) M4_YY_CALL_LAST_ARG );
1304c3
 	if ( ! b->yy_ch_buf )
1304c3
 		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1304c3
 
1304c3
@@ -2397,7 +2397,7 @@ YY_BUFFER_STATE yy_scan_buffer  YYFARGS2
1304c3
 	if ( ! b )
1304c3
 		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1304c3
 
1304c3
-	b->yy_buf_size = size - 2;	/* "- 2" to take care of EOB's */
1304c3
+	b->yy_buf_size = (int) (size - 2);	/* "- 2" to take care of EOB's */
1304c3
 	b->yy_buf_pos = b->yy_ch_buf = base;
1304c3
 	b->yy_is_our_buffer = 0;
1304c3
 	b->yy_input_file = NULL;