Change Lexer::{MORE,SKIP} def back to negative

- Explicitly cast negative values to size_t instead of using an offset
  from std::numeric_limts<size_t>::max().
This commit is contained in:
Jan Martin Mikkelsen 2017-06-12 10:44:30 +10:00
parent 6e46b168f5
commit 274e3c2d3b
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ namespace antlr4 {
class ANTLR4CPP_PUBLIC Lexer : public Recognizer, public TokenSource {
public:
static const size_t DEFAULT_MODE = 0;
static const size_t MORE = std::numeric_limits<size_t>::max() - 1;
static const size_t SKIP = std::numeric_limits<size_t>::max() - 2;
static const size_t MORE = static_cast<size_t>(-2);
static const size_t SKIP = static_cast<size_t>(-3);
static const size_t DEFAULT_TOKEN_CHANNEL = Token::DEFAULT_CHANNEL;
static const size_t HIDDEN = Token::HIDDEN_CHANNEL;