summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/scanner.l3
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 {