Blame SOURCES/flex-yybytes_len.patch

1304c3
commit cf4121fa97abac8aeaa5e08b8fc0b2380228494e
1304c3
Author: rlar <rlar>
1304c3
Date:   Sat Feb 27 22:46:02 2016 +0100
1304c3
1304c3
    generated code, `_yybytes_len' is of type `int', fix code accordingly
1304c3
1304c3
Index: b/src/flex.skl
1304c3
===================================================================
1304c3
--- a/src/flex.skl
1304c3
+++ b/src/flex.skl
1304c3
@@ -2451,11 +2451,11 @@ YY_BUFFER_STATE yy_scan_bytes  YYFARGS2(
1304c3
 	YY_BUFFER_STATE b;
1304c3
 	char *buf;
1304c3
 	yy_size_t n;
1304c3
-	yy_size_t i;
1304c3
+	int i;
1304c3
     m4_dnl M4_YY_DECL_GUTS_VAR();
1304c3
 
1304c3
 	/* Get memory for full buffer, including space for trailing EOB's. */
1304c3
-	n = (yy_size_t) _yybytes_len + 2;
1304c3
+	n = (yy_size_t) (_yybytes_len + 2);
1304c3
 	buf = (char *) yyalloc( n M4_YY_CALL_LAST_ARG );
1304c3
 	if ( ! buf )
1304c3
 		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );