mirror of https://gitee.com/bigwinds/arangodb
less compile warnings in VS?
This commit is contained in:
parent
ea76accb72
commit
424d349464
|
@ -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;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue