summaryrefslogtreecommitdiffstats
path: root/oox
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-15 14:26:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-16 11:12:31 +0200
commit87c90cec38c43efbbd9cbfad1f0f607f428043d4 (patch)
treeb65b6ccc78a4a922c027f98e4d8ab5251fdf33bb /oox
parenttdf#137245 sw: fix AutoFormat SetBorder deleting flys (diff)
downloadcore-87c90cec38c43efbbd9cbfad1f0f607f428043d4.tar.gz
core-87c90cec38c43efbbd9cbfad1f0f607f428043d4.zip
fix some *printf which are using "%l" ie. long specifiers
which are not portable between Linux and Windows because long is not portable. In preparation for converting long -> tools::Long Change-Id: I8bf1aa1570946ca887a6c83dd5f99c024d437336 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104374 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/helper/propertymap.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx
index 74351064a85a..3bc994aabc19 100644
--- a/oox/source/helper/propertymap.cxx
+++ b/oox/source/helper/propertymap.cxx
@@ -567,7 +567,7 @@ static const char* lclDumpAnyValueCode( const Any& value, int level)
sal_uInt32 uintValue;
sal_Int16 int16Value;
sal_uInt16 uint16Value;
- long longValue;
+ sal_Int64 int64Value;
float floatValue = 0;
bool boolValue;
LineSpacing spacing;
@@ -779,10 +779,10 @@ static const char* lclDumpAnyValueCode( const Any& value, int level)
lclGetEnhancedParameterType(par.Type));
return "aParameter";
}
- else if( value >>= longValue )
+ else if( value >>= int64Value )
{
printLevel (level);
- fprintf (stderr,"Any aAny ((sal_Int32) %ld);\n", longValue);
+ fprintf (stderr,"Any aAny ((sal_Int64) %" SAL_PRIdINT64 ");\n", int64Value);
return "aAny";
}
else if( value >>= intValue )