summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/ustring.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/rtl/ustring.cxx b/sal/rtl/ustring.cxx
index cd42e47e8345..90e5ba14126f 100644
--- a/sal/rtl/ustring.cxx
+++ b/sal/rtl/ustring.cxx
@@ -569,10 +569,10 @@ void SAL_CALL rtl_uString_newFromCodePoints(
++n;
}
}
- /* 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): */
+ /* 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): */
if (n < 0) {
*newString = NULL;
return;