Commit f194859b authored by Ronan's avatar Ronan

fix(belr): cast bool to unsigned char (windows fix)

parent 6dc5d2f9
......@@ -262,7 +262,7 @@ CharRecognizer::CharRecognizer(BinaryGrammarBuilder &istr) : Recognizer(istr){
unsigned char tmp;
istr>>tmp;
mCaseSensitive = (bool)tmp;
mCaseSensitive = !!tmp;
}
shared_ptr<Selector> Selector::addRecognizer(const shared_ptr<Recognizer> &r){
......@@ -328,7 +328,7 @@ void Selector::_serialize(BinaryOutputStream &fstr){
Selector::Selector(BinaryGrammarBuilder& istr) : Recognizer(istr){
unsigned char tmp;
istr>>tmp;
mIsExclusive = (bool)tmp;
mIsExclusive = !!tmp;
int count;
istr>>count;
......
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