diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-18 00:01:25 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-18 00:01:25 +0100 |
commit | 657d89a6a0e1f3e97299811cf50cf59785a1328b (patch) | |
tree | 827f933e2a0dc886033419ca34af0eb3e196468d | |
parent | 5f4379bfe7fcd17216160e945b66d72002b2b0b2 (diff) | |
download | sds-657d89a6a0e1f3e97299811cf50cf59785a1328b.tar.xz |
sdsfromlonglong: Cast abs ternary statement to ull
Fixes the warning about the ternary statement changing the signedness of
value.
-rw-r--r-- | src/sds.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -531,7 +531,7 @@ sds sdsfromlonglong(long long value) { char buf[32], *p; unsigned long long v; - v = (value < 0) ? -value : value; + v = (unsigned long long)((value < 0) ? -value : value); p = buf+31; /* point to the last character */ do { *p-- = '0'+(v%10); |