summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Castagno <giuseppe.castagno@acca-esse.eu>2016-08-18 16:56:07 +0200
committerTor Lillqvist <tml@collabora.com>2016-08-18 20:23:59 +0000
commit0d5804cc8e26cbf315c85c3d1c5d62929f49b470 (patch)
tree17f1083be007e26f4596cf1b1729b50025cf69eb
parentb69503ea67cea885fde8a36f41af37a56455fe19 (diff)
Fix sal log for 32 bit Linux build
Change-Id: I2644079cafa46db8689463e1d0abc1cf3bdf49de Reviewed-on: https://gerrit.libreoffice.org/28222 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r--sal/osl/all/log.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx
index f9a6a4ea063c..da167a74b871 100644
--- a/sal/osl/all/log.cxx
+++ b/sal/osl/all/log.cxx
@@ -131,7 +131,7 @@ void maybeOutputTimestamp(std::ostringstream &s) {
tm.tm_year = dateTime.Year - 1900;
strftime(ts, sizeof(ts), "%Y-%m-%d:%H:%M:%S", &tm);
char milliSecs[10];
- sprintf(milliSecs, "%03d", dateTime.NanoSeconds/1000000);
+ sprintf(milliSecs, "%03d", static_cast<int>(dateTime.NanoSeconds/1000000));
s << ts << '.' << milliSecs << ':';
}
if (outputRelativeTimer) {