DIRECTOR: Fix MSVC Warnings

This commit is contained in:
D G Turner 2019-10-03 04:56:46 +01:00
parent e97985e887
commit 7cc908f0ac
3 changed files with 5 additions and 5 deletions

View File

@ -2290,7 +2290,7 @@ yyreduce:
WRITE_UINT32(&finish, (yyvsp[(7) - (11)].code) - (yyvsp[(1) - (11)].code));
WRITE_UINT32(&body, (yyvsp[(9) - (11)].code) - (yyvsp[(1) - (11)].code));
WRITE_UINT32(&end, (yyvsp[(10) - (11)].code) - (yyvsp[(1) - (11)].code));
WRITE_UINT32(&inc, -1);
WRITE_UINT32(&inc, (uint32)-1);
(*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 1] = init; /* initial count value */
(*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 2] = finish;/* final count value */
(*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 3] = body; /* body of loop */

View File

@ -236,7 +236,7 @@ stmt: stmtoneliner
WRITE_UINT32(&finish, $7 - $1);
WRITE_UINT32(&body, $9 - $1);
WRITE_UINT32(&end, $10 - $1);
WRITE_UINT32(&inc, -1);
WRITE_UINT32(&inc, (uint32)-1);
(*g_lingo->_currentScript)[$1 + 1] = init; /* initial count value */
(*g_lingo->_currentScript)[$1 + 2] = finish;/* final count value */
(*g_lingo->_currentScript)[$1 + 3] = body; /* body of loop */

View File

@ -333,7 +333,7 @@ void yyfree (void * );
/* Begin user sect3 */
#define yywrap(n) 1
#define yywrap() 1
#define YY_SKIP_YYWRAP
typedef unsigned char YY_CHAR;
@ -1648,7 +1648,7 @@ case YY_STATE_EOF(INITIAL):
{
(yy_did_buffer_switch_on_eof) = 0;
if ( yywrap( ) )
if ( yywrap() )
{
/* Note: because we've taken care in
* yy_get_next_buffer() to have set up
@ -1947,7 +1947,7 @@ static int yy_get_next_buffer (void)
case EOB_ACT_END_OF_FILE:
{
if ( yywrap( ) )
if ( yywrap() )
return 0;
if ( ! (yy_did_buffer_switch_on_eof) )