summaryrefslogtreecommitdiff
path: root/testtools
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 /testtools
parent9b34dc20b6946698ae6ce2d5d859885bfb444633 (diff)
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 'testtools')
-rw-r--r--testtools/source/performance/ubtest.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/testtools/source/performance/ubtest.cxx b/testtools/source/performance/ubtest.cxx
index c30f31ba7150..38950b8bda5d 100644
--- a/testtools/source/performance/ubtest.cxx
+++ b/testtools/source/performance/ubtest.cxx
@@ -153,7 +153,7 @@ static inline void out( sal_Int64 nVal, FILE * stream = stderr,
sal_Int32 nStart = -1, char cFillchar = ' ' )
{
char ar[128];
- ::snprintf( ar, sizeof(ar), "%ld", nVal );
+ ::snprintf( ar, sizeof(ar), "%" SAL_PRIdINT64, nVal );
out( ar, stream, nStart, cFillchar );
}