FreeBSD Bugzilla – Attachment 15270 Details for
Bug 28364
[patch] flex(1) generated files fail to compile cleanly with -Wconversion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.50 KB, created by
avn
on 2001-06-23 12:40:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
avn
Created:
2001-06-23 12:40:02 UTC
Size:
1.50 KB
patch
obsolete
>--- flex.skl.orig Sat Jun 23 15:15:38 2001 >+++ flex.skl Sat Jun 23 15:15:38 2001 >@@ -104,7 +104,7 @@ > > typedef struct yy_buffer_state *YY_BUFFER_STATE; > >-extern int yyleng; >+extern size_t yyleng; > %- > extern FILE *yyin, *yyout; > %* >@@ -228,7 +228,7 @@ > static int yy_n_chars; /* number of characters read into yy_ch_buf */ > > >-int yyleng; >+size_t yyleng; > > /* Points to current character in buffer. */ > static char *yy_c_buf_p = (char *) 0; >@@ -788,7 +788,7 @@ > > else > { >- int num_to_read = >+ size_t num_to_read = > yy_current_buffer->yy_buf_size - number_to_move - 1; > > while ( num_to_read <= 0 ) >--- gen.c.orig Sat Jun 23 15:15:38 2001 >+++ gen.c Sat Jun 23 15:15:38 2001 >@@ -1070,11 +1070,11 @@ > if ( yymore_used && ! yytext_is_array ) > { > indent_puts( "yytext_ptr -= yy_more_len; \\" ); >- indent_puts( "yyleng = (int) (yy_cp - yytext_ptr); \\" ); >+ indent_puts( "yyleng = (size_t) (yy_cp - yytext_ptr); \\" ); > } > > else >- indent_puts( "yyleng = (int) (yy_cp - yy_bp); \\" ); >+ indent_puts( "yyleng = (size_t) (yy_cp - yy_bp); \\" ); > > /* Now also deal with copying yytext_ptr to yytext if needed. */ > skelout(); >@@ -1341,7 +1341,8 @@ > outn( > "\tif ( yy_current_buffer->yy_is_interactive ) \\" ); > outn( "\t\t{ \\" ); >- outn( "\t\tint c = '*', n; \\" ); >+ outn( "\t\tint c = '*'; \\"); >+ outn( "\t\tsize_t n; \\" ); > outn( "\t\tfor ( n = 0; n < max_size && \\" ); > outn( "\t\t\t (c = getc( yyin )) != EOF && c != '\\n'; ++n ) \\" ); > outn( "\t\t\tbuf[n] = (char) c; \\" );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28364
: 15270