summaryrefslogtreecommitdiff
path: root/i18npool
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/localedata/LocaleNode.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/i18npool/source/localedata/LocaleNode.cxx b/i18npool/source/localedata/LocaleNode.cxx
index da2acce25ba4..93c6b461e77f 100644
--- a/i18npool/source/localedata/LocaleNode.cxx
+++ b/i18npool/source/localedata/LocaleNode.cxx
@@ -26,6 +26,8 @@
#include <rtl/ustrbuf.hxx>
#include <sal/macros.h>
+#include <sal/types.h>
+#include <tools/long.hxx>
#include "LocaleNode.hxx"
#include <i18npool/reservedconstants.hxx>
@@ -166,9 +168,9 @@ OUString LocaleNode::writeParameterCheckLen( const OFileWriter &of,
{
++nError;
fprintf( stderr,
- "Error: more than %ld character%s (%ld) in %s '%s' not supported by application.\n",
- sal::static_int_cast< long >(nMaxLen), (nMaxLen > 1 ? "s" : ""),
- sal::static_int_cast< long >(nLen),
+ "Error: more than %" SAL_PRIdINT32 " character%s (%" SAL_PRIdINT32 ") in %s '%s' not supported by application.\n",
+ nMaxLen, (nMaxLen > 1 ? "s" : ""),
+ nLen,
(pNode ? OSTR( pNode->getName()) : ""),
OSTR( aVal));
}
@@ -1339,8 +1341,8 @@ void LCSearchNode::generateCode (const OFileWriter &of) const
{
++nError;
fprintf(
- stderr, "Error: LC_SEARCH: more than 1 child: %ld\n",
- sal::static_int_cast< long >(getNumberOfChildren()));
+ stderr, "Error: LC_SEARCH: more than 1 child: %" SAL_PRIdINT32 "\n",
+ getNumberOfChildren());
}
sal_Int32 i;
LocaleNode* pSearchOptions = getChildAt( 0 );