Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/flex/dist/src fix incorrect cast.



details:   https://anonhg.NetBSD.org/src/rev/4d9dd1ed66e1
branches:  trunk
changeset: 446882:4d9dd1ed66e1
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 23 22:14:29 2018 +0000

description:
fix incorrect cast.

diffstat:

 external/bsd/flex/dist/src/flex.skl |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r bc4c96c42ffd -r 4d9dd1ed66e1 external/bsd/flex/dist/src/flex.skl
--- a/external/bsd/flex/dist/src/flex.skl       Sun Dec 23 21:27:45 2018 +0000
+++ b/external/bsd/flex/dist/src/flex.skl       Sun Dec 23 22:14:29 2018 +0000
@@ -1694,7 +1694,7 @@
                if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
                        YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
                /* "- 2" to take care of EOB's */
-               YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
+               YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (yy_size_t) (new_size - 2);
        }
 
        YY_G(yy_n_chars) += number_to_move;



Home | Main Index | Thread Index | Old Index