forked from jasder/antlr
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:
parent
6e46b168f5
commit
274e3c2d3b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue