diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2015-02-16 11:00:57 +0100 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2015-02-16 11:00:57 +0100 |
commit | 6ec92721cbe8f106c61780bdf982fe518b6fa355 (patch) | |
tree | 47630ab3bff9bb7544d0c8b9764ed63145b6ae28 | |
parent | f6cd73ea6eb4215525cbb9db95371b4d5daa4af1 (diff) |
iso8601.cpp: fix abs(long) compiler warning
Implicit conversion of long to int when calling abs() triggers a
compiler warning in clang 3.5.0.
-rw-r--r-- | src/sysync/iso8601.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysync/iso8601.cpp b/src/sysync/iso8601.cpp index ea5fd6f..ad538e3 100644 --- a/src/sysync/iso8601.cpp +++ b/src/sysync/iso8601.cpp @@ -366,7 +366,7 @@ bool ContextToISO8601StrAppend(string &aISOString, timecontext_t aTimeContext, b // offset specified, show it long moffs = TCTX_MINOFFSET(aTimeContext); bool minus = moffs<0; - moffs = abs(moffs); + moffs = labs(moffs); long hoffs = moffs / MinsPerHour; moffs = moffs % MinsPerHour; StringObjAppendPrintf(aISOString, "%c%02ld", minus ? '-' : '+', hoffs); |