Re: [Flex-help] [Flex-devel] fix compiler warning
flex is a tool for generating scanners
Brought to you by:
wlestes
From: Bob R. <bob...@co...> - 2007-12-10 01:43:18
|
On Sun, Dec 09, 2007 at 04:27:13PM -0800, Aaron Stone wrote: > > > About your patch, size_t is always unsigned, but it looks like the > > > variable in question sometimes goes negative, and is cast to size_t only > > > as needed. > > > > OK, I see that now. So, I have a few options that I can think of, > > > > 1) at this point, > > /* Read in more data. */ > > YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), > > YY_G(yy_n_chars), num_to_read ); > > > > I can cast num_to_read to size_t like this: > > > > YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), > > YY_G(yy_n_chars), (size_t)num_to_read ); > > This exact fix is in CVS already, as it turns out. Aha! Is there a planned release for any time soon? Thanks, Bob Rossi |