From fe70acb541d1fec9685f63d3c00f33033f42ea37 Mon Sep 17 00:00:00 2001 From: aothms Date: Tue, 26 Jan 2016 16:45:39 +0100 Subject: [PATCH] Fix https://github.com/IfcOpenShell/IfcOpenShell/issues/26 --- src/ifcparse/IfcCharacterDecoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcparse/IfcCharacterDecoder.cpp b/src/ifcparse/IfcCharacterDecoder.cpp index a49cee2eed..a3388e6cc5 100644 --- a/src/ifcparse/IfcCharacterDecoder.cpp +++ b/src/ifcparse/IfcCharacterDecoder.cpp @@ -208,7 +208,7 @@ IfcCharacterDecoder::operator std::string() { if ( hex_count == 2 ) parse_state = 0; else { CLEAR_HEX(parse_state); - parse_state += ENCOUNTERED_HEX; + parse_state |= ENCOUNTERED_HEX; } hex = hex_count = 0; } @@ -276,7 +276,7 @@ void IfcCharacterDecoder::dryRun() { if ( hex_count == 2 ) parse_state = 0; else { CLEAR_HEX(parse_state); - parse_state += ENCOUNTERED_HEX; + parse_state |= ENCOUNTERED_HEX; } hex_count = 0; }