We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9679d45 commit 5471f34Copy full SHA for 5471f34
1 file changed
src/ifcparse/IfcCharacterDecoder.cpp
@@ -327,7 +327,7 @@ IfcCharacterEncoder::operator std::string() {
327
UChar32 ch;
328
329
const char* source = str.c_str();
330
- const char* limit = &*str.end();
+ const char* limit = source + str.size();
331
332
bool in_extended = false;
333
@@ -364,4 +364,4 @@ IfcCharacterEncoder::operator std::string() {
364
#ifdef HAVE_ICU
365
UErrorCode IfcCharacterEncoder::status = U_ZERO_ERROR;
366
UConverter* IfcCharacterEncoder::converter = 0;
367
-#endif
+#endif
0 commit comments