1
0
Fork 0

less compile warnings in VS?

This commit is contained in:
Jan Steemann 2015-02-17 16:13:06 +01:00
parent ea76accb72
commit 424d349464
3 changed files with 11 additions and 3 deletions

View File

@ -179,7 +179,15 @@ namespace triagens {
////////////////////////////////////////////////////////////////////////////////
inline void increaseOffset (int offset) {
_offset += (size_t) offset;
_offset += static_cast<size_t>(offset);
}
////////////////////////////////////////////////////////////////////////////////
/// @brief adjust the current parse position
////////////////////////////////////////////////////////////////////////////////
inline void increaseOffset (size_t offset) {
_offset += offset;
}
////////////////////////////////////////////////////////////////////////////////

View File

@ -649,7 +649,7 @@ namespace triagens {
#define YY_EXTRA_TYPE triagens::aql::Parser*
#define YY_USER_ACTION yylloc->first_line = yylineno; yylloc->first_column = yycolumn; yylloc->last_column = (int) (yycolumn + yyleng - 1); yycolumn += (int) yyleng; yyextra->increaseOffset(yyleng);
#define YY_USER_ACTION yylloc->first_line = (int) yylineno; yylloc->first_column = (int) yycolumn; yylloc->last_column = (int) (yycolumn + yyleng - 1); yycolumn += (int) yyleng; yyextra->increaseOffset(yyleng);
#define YY_NO_INPUT 1

View File

@ -33,7 +33,7 @@ namespace triagens {
#define YY_EXTRA_TYPE triagens::aql::Parser*
#define YY_USER_ACTION yylloc->first_line = yylineno; yylloc->first_column = yycolumn; yylloc->last_column = (int) (yycolumn + yyleng - 1); yycolumn += (int) yyleng; yyextra->increaseOffset(yyleng);
#define YY_USER_ACTION yylloc->first_line = (int) yylineno; yylloc->first_column = (int) yycolumn; yylloc->last_column = (int) (yycolumn + yyleng - 1); yycolumn += (int) yyleng; yyextra->increaseOffset(yyleng);
#define YY_NO_INPUT 1