diff options
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/errorhandler.cxx | 12 | ||||
-rw-r--r-- | idlc/source/idlcmain.cxx | 9 |
2 files changed, 10 insertions, 11 deletions
diff --git a/idlc/source/errorhandler.cxx b/idlc/source/errorhandler.cxx index 1e09bb995302..aa2de56bc969 100644 --- a/idlc/source/errorhandler.cxx +++ b/idlc/source/errorhandler.cxx @@ -389,10 +389,10 @@ static void errorHeader(ErrorCode eCode, sal_Int32 lineNumber, sal_uInt32 start, else file = idlc()->getFileName(); - fprintf(stderr, "%s:%lu [%lu:%lu] : %s", file.getStr(), - sal::static_int_cast< unsigned long >(lineNumber), - sal::static_int_cast< unsigned long >(start), - sal::static_int_cast< unsigned long >(end), + fprintf(stderr, "%s:%" SAL_PRIdINT64 " [%" SAL_PRIdINT64 ":%" SAL_PRIdINT64 "] : %s", file.getStr(), + sal_Int64(lineNumber), + sal_Int64(start), + sal_Int64(end), errorCodeToMessage(eCode)); } @@ -416,8 +416,8 @@ static void warningHeader(WarningCode wCode) else file = idlc()->getFileName(); - fprintf(stderr, "%s(%lu) : WARNING, %s", file.getStr(), - sal::static_int_cast< unsigned long >(idlc()->getLineNumber()), + fprintf(stderr, "%s(%" SAL_PRIdINT64 ") : WARNING, %s", file.getStr(), + sal_Int64(idlc()->getLineNumber()), warningCodeToMessage(wCode)); } diff --git a/idlc/source/idlcmain.cxx b/idlc/source/idlcmain.cxx index 0c4ded92be10..a79a30a504e2 100644 --- a/idlc/source/idlcmain.cxx +++ b/idlc/source/idlcmain.cxx @@ -90,10 +90,9 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) nErrors = compileFile(&sysFileName); if ( idlc()->getWarningCount() && !options.quiet() ) - fprintf(stdout, "%s: detected %lu warnings compiling file '%s'\n", + fprintf(stdout, "%s: detected %" SAL_PRIdINT64 " warnings compiling file '%s'\n", options.getProgramName().getStr(), - sal::static_int_cast< unsigned long >( - idlc()->getWarningCount()), + sal_Int64(idlc()->getWarningCount()), elem.getStr()); // prepare output file name @@ -140,9 +139,9 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) if ( nErrors > 0 ) { - fprintf(stderr, "%s: detected %ld errors%s", + fprintf(stderr, "%s: detected %" SAL_PRIdINT64 " errors%s", options.getProgramName().getStr(), - sal::static_int_cast< long >(nErrors), + sal_Int64(nErrors), options.prepareVersion().getStr()); } else { |