diff --git a/msvs/bin/debug/redisbin.zip b/msvs/bin/debug/redisbin.zip index 9b2b4e67..9b12ee7e 100644 Binary files a/msvs/bin/debug/redisbin.zip and b/msvs/bin/debug/redisbin.zip differ diff --git a/msvs/bin/debug/redisbin64.zip b/msvs/bin/debug/redisbin64.zip index d9915316..5caa9869 100644 Binary files a/msvs/bin/debug/redisbin64.zip and b/msvs/bin/debug/redisbin64.zip differ diff --git a/msvs/bin/release/redisbin.zip b/msvs/bin/release/redisbin.zip index d3346cb0..7d0e8438 100644 Binary files a/msvs/bin/release/redisbin.zip and b/msvs/bin/release/redisbin.zip differ diff --git a/msvs/bin/release/redisbin64.zip b/msvs/bin/release/redisbin64.zip index 55dc65e4..a202cb5c 100644 Binary files a/msvs/bin/release/redisbin64.zip and b/msvs/bin/release/redisbin64.zip differ diff --git a/src/object.c b/src/object.c index da67952a..8612ae04 100644 --- a/src/object.c +++ b/src/object.c @@ -81,7 +81,12 @@ robj *createStringObjectFromLongDouble(long double value) { * that is "non surprising" for the user (that is, most small decimal * numbers will be represented in a way that when converted back into * a string are exactly the same as what the user typed.) */ +#ifdef _WIN32 + /* on Windows the magic number is 15 */ + len = snprintf(buf,sizeof(buf),"%.15Lf", value); +#else len = snprintf(buf,sizeof(buf),"%.17Lf", value); +#endif /* Now remove trailing zeroes after the '.' */ if (strchr(buf,'.') != NULL) { char *p = buf+len-1;