diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-01-13 21:34:46 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-01-14 07:35:37 +0100 |
commit | 8b4f13e152acac20930db13fd4ec4f3d31627c09 (patch) | |
tree | c4962d43decbdba17b3d669e8754bda7ffb80d66 /idlc | |
parent | 499e3a738a4bd2df70d2bc3e1d0708b9dae0ae14 (diff) |
loplugin:unsignedcompare
Change-Id: I007400f745708087f793f37cd081652e07bcd1b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109251
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/scanner.l | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/idlc/source/scanner.l b/idlc/source/scanner.l index 660e01588960..7e3423fa8dc5 100644 --- a/idlc/source/scanner.l +++ b/idlc/source/scanner.l @@ -29,6 +29,7 @@ #include <stdlib.h> #include <string.h> +#include <o3tl/safeint.hxx> #include <rtl/character.hxx> #if defined _MSC_VER @@ -137,7 +138,7 @@ static int asciiToInteger(char const * s, sal_Int64 * sval, sal_uInt64 * uval) *sval = 0; } return IDL_INTEGER_LITERAL; - } else if (val <= static_cast< sal_uInt64 >(SAL_MAX_INT64)) { + } else if (val <= o3tl::make_unsigned(SAL_MAX_INT64)) { *sval = static_cast< sal_Int64 >(val); return IDL_INTEGER_LITERAL; } else { |