summaryrefslogtreecommitdiff
path: root/src/css.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-03-05 10:08:19 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-05 10:08:19 +0900
commit429760a22c7e2ff8a2de69744b04aa4b2f202119 (patch)
treef01a12a606c06dbc5617e34fe60b7221f720a6db /src/css.c
parentb15fb2d17b19575dbd7314fc96d64cc64f9d5795 (diff)
downloadwget-429760a22c7e2ff8a2de69744b04aa4b2f202119.tar.gz
wget-429760a22c7e2ff8a2de69744b04aa4b2f202119.tar.bz2
wget-429760a22c7e2ff8a2de69744b04aa4b2f202119.zip
Imported Upstream version 1.19.1upstream/1.19.1
Diffstat (limited to 'src/css.c')
-rw-r--r--src/css.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/css.c b/src/css.c
index 7c2ae68..4f9a403 100644
--- a/src/css.c
+++ b/src/css.c
@@ -5378,7 +5378,7 @@ static int yy_get_next_buffer (void)
{
char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
char *source = (yytext_ptr);
- yy_size_t number_to_move, i;
+ int number_to_move, i;
int ret_val;
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
@@ -5407,7 +5407,7 @@ static int yy_get_next_buffer (void)
/* Try to read more data. */
/* First move last chars to start of buffer. */
- number_to_move = (yy_size_t) ((yy_c_buf_p) - (yytext_ptr)) - 1;
+ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
for ( i = 0; i < number_to_move; ++i )
*(dest++) = *(source++);
@@ -5489,7 +5489,7 @@ static int yy_get_next_buffer (void)
else
ret_val = EOB_ACT_CONTINUE_SCAN;
- if ((int) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
+ if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
/* Extend the array by 50%, plus the number we really need. */
int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
@@ -5965,10 +5965,10 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
- yy_size_t i;
+ int i;
/* Get memory for full buffer, including space for trailing EOB's. */
- n = (yy_size_t) _yybytes_len + 2;
+ n = (yy_size_t) (_yybytes_len + 2);
buf = (char *) yyalloc(n );
if ( ! buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );