Skip to content

Commit aa4f6c0

Browse files
committed
Merge pull request IfcOpenShell#1 from yorikvanhavre/master
1 parent 5471f34 commit aa4f6c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ifcparse/IfcCharacterDecoder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ IfcCharacterEncoder::operator std::string() {
327327
UChar32 ch;
328328

329329
const char* source = str.c_str();
330-
const char* limit = source + str.size();
330+
const char* limit = &*str.end();
331331

332332
bool in_extended = false;
333333

@@ -364,4 +364,4 @@ IfcCharacterEncoder::operator std::string() {
364364
#ifdef HAVE_ICU
365365
UErrorCode IfcCharacterEncoder::status = U_ZERO_ERROR;
366366
UConverter* IfcCharacterEncoder::converter = 0;
367-
#endif
367+
#endif

0 commit comments

Comments
 (0)