summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {