Commit a3c9cb99 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by Christian Kamm

Compile fix

Change-Id: I8f3eb7d21074fec00de870d33e493842286222ee
Reviewed-on: http://codereview.qt.nokia.com/51Reviewed-by: default avatarChristian Kamm <christian.d.kamm@nokia.com>
parent f027b1da
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment