Merge pull request #6531 from oranagra/rm_save_long_double

Module API for loading and saving long double
This commit is contained in:
Salvatore Sanfilippo
2019-11-04 17:33:35 +01:00
committed by GitHub
8 changed files with 87 additions and 30 deletions

View File

@ -530,7 +530,7 @@ void addReplyHumanLongDouble(client *c, long double d) {
decrRefCount(o);
} else {
char buf[MAX_LONG_DOUBLE_CHARS];
int len = ld2string(buf,sizeof(buf),d,1);
int len = ld2string(buf,sizeof(buf),d,LD_STR_HUMAN);
addReplyProto(c,",",1);
addReplyProto(c,buf,len);
addReplyProto(c,"\r\n",2);