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/eef7a3341fe9
branches:  trunk
changeset: 995462:eef7a3341fe9
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 663bccce4039 -r eef7a3341fe9 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