Skip to content
Snippets Groups Projects
Commit a3c9cb99 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by Christian Kamm
Browse files

Compile fix

Change-Id: I8f3eb7d21074fec00de870d33e493842286222ee
Reviewed-on: http://codereview.qt.nokia.com/51


Reviewed-by: default avatarChristian Kamm <christian.d.kamm@nokia.com>
parent f027b1da
No related branches found
No related tags found
No related merge requests found
......@@ -166,22 +166,22 @@ static int findRegExpEnd(const QString &text, int start)
static inline int multiLineState(int state)
{
return state & 0b11;
return state & 0x3;
}
static inline void setMultiLineState(int *state, int s)
{
*state = s | (*state & ~0b11);
*state = s | (*state & ~0x3);
}
static inline bool regexpMayFollow(int state)
{
return state & 0b100;
return state & 0x4;
}
static inline void setRegexpMayFollow(int *state, bool on)
{
*state = (on << 2) | (*state & 0b11);
*state = (on << 2) | (*state & 0x3);
}
QList<Token> Scanner::operator()(const QString &text, int startState)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment