summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/scanner.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/idlc/source/scanner.l b/idlc/source/scanner.l
index 1ba611dc52ea..37b2bbff0829 100644
--- a/idlc/source/scanner.l
+++ b/idlc/source/scanner.l
@@ -227,7 +227,7 @@ static void parseLineAndFile(sal_Char* pBuf)
h = r;
for (; *r != '\0' && *r != ' ' && *r != '\t'; r++) ;
*r++ = 0;
- idlc()->setLineNumber((sal_uInt32)atol(h));
+ idlc()->setLineNumber(sal_uInt32(atol(h)));
yylineno = atol(h);
/* Find file name, if present */