aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sds.c b/src/sds.c
index 6573634..35132a9 100644
--- a/src/sds.c
+++ b/src/sds.c
@@ -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);