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