summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/ustring.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sal/rtl/ustring.cxx b/sal/rtl/ustring.cxx
index 90e5ba14126f..cc9981260a8d 100644
--- a/sal/rtl/ustring.cxx
+++ b/sal/rtl/ustring.cxx
@@ -569,11 +569,12 @@ void SAL_CALL rtl_uString_newFromCodePoints(
++n;
}
}
- /* coverity[dead_error_condition] - Builds on the assumption that sal_Int32
- uses 32 bit two's complement representation with wrap around (the
- necessary number of UTF-16 code units will be no larger than 2 *
- SAL_MAX_INT32, represented as sal_Int32 -2): */
+ /* Builds on the assumption that sal_Int32 uses 32 bit two's complement
+ representation with wrap around (the necessary number of UTF-16 code
+ units will be no larger than 2 * SAL_MAX_INT32, represented as
+ sal_Int32 -2): */
if (n < 0) {
+ // coverity[dead_error_begin] - assumes wrap around
*newString = NULL;
return;
}