[Libreoffice-commits] core.git: idlc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Feb 28 08:31:21 UTC 2019


 idlc/source/scanner.l |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 68008da159f5be16a5dcc67a27c3442add86e1c1
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Feb 27 13:39:44 2019 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Feb 28 09:30:52 2019 +0100

    loplugin:cstylecast
    
    Change-Id: I7f87f24ed65c3fbc4a0a37357c7be4d16b44ac89
    Reviewed-on: https://gerrit.libreoffice.org/68467
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

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 */


More information about the Libreoffice-commits mailing list