From 87c90cec38c43efbbd9cbfad1f0f607f428043d4 Mon Sep 17 00:00:00 2001 From: Noel Date: Thu, 15 Oct 2020 14:26:35 +0200 Subject: 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 --- sw/source/filter/ww8/WW8TableInfo.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sw/source/filter') diff --git a/sw/source/filter/ww8/WW8TableInfo.cxx b/sw/source/filter/ww8/WW8TableInfo.cxx index f9c2cad6b26d..7eb51d6f287c 100644 --- a/sw/source/filter/ww8/WW8TableInfo.cxx +++ b/sw/source/filter/ww8/WW8TableInfo.cxx @@ -1278,7 +1278,7 @@ std::string WW8TableCellGrid::toString() static char sBuffer[1024]; while (aTopsIt != getRowTopsEnd()) { - sprintf(sBuffer, "", *aTopsIt); + sprintf(sBuffer, "", sal_Int64(*aTopsIt)); sResult += sBuffer; CellInfoMultiSet::const_iterator aCellIt = getCellsBegin(*aTopsIt); @@ -1286,8 +1286,8 @@ std::string WW8TableCellGrid::toString() while (aCellIt != aCellsEnd) { - snprintf(sBuffer, sizeof(sBuffer), "", - aCellIt->top(), aCellIt->bottom(), aCellIt->left(), aCellIt->right()); + snprintf(sBuffer, sizeof(sBuffer), "", + sal_Int64(aCellIt->top()), sal_Int64(aCellIt->bottom()), sal_Int64(aCellIt->left()), sal_Int64(aCellIt->right())); sResult += sBuffer; WW8TableNodeInfo * pInfo = aCellIt->getTableNodeInfo(); -- cgit