summaryrefslogtreecommitdiff
path: root/sw/source/filter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-25 11:00:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-25 14:07:07 +0100
commit9e0de138a5afaa7132ee535a15741effc983d2b0 (patch)
tree0e8b4dfd3ea51835ccc72dca93fa19d6d549faf9 /sw/source/filter
parente4c841f7999538522e9453dde9a2d021df5cf149 (diff)
Use sal_Int64 to printf tools::Long values
(The "%l" format specifiers had now caused -Werror,-Wformat with clang-cl for a Windows 64-bit build.) Change-Id: I86b9617310f7348d72172cc7a29f0976c7030dd5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106576 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source/filter')
-rw-r--r--sw/source/filter/ww8/WW8TableInfo.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/filter/ww8/WW8TableInfo.cxx b/sw/source/filter/ww8/WW8TableInfo.cxx
index 03f376fbeec9..907e4131cec0 100644
--- a/sw/source/filter/ww8/WW8TableInfo.cxx
+++ b/sw/source/filter/ww8/WW8TableInfo.cxx
@@ -998,15 +998,15 @@ std::string CellInfo::toString() const
static char sBuffer[256];
snprintf(sBuffer, sizeof(sBuffer),
- "<cellinfo left=\"%ld\""
- " right=\"%ld\""
- " top=\"%ld\""
- " bottom=\"%ld\""
+ "<cellinfo left=\"%" SAL_PRIdINT64 "\""
+ " right=\"%" SAL_PRIdINT64 "\""
+ " top=\"%" SAL_PRIdINT64 "\""
+ " bottom=\"%" SAL_PRIdINT64 "\""
" node=\"%p\"/>",
- left(),
- right(),
- top(),
- bottom(),
+ sal_Int64(left()),
+ sal_Int64(right()),
+ sal_Int64(top()),
+ sal_Int64(bottom()),
m_pNodeInfo);
return sBuffer;