fix: exponent can allow + sign directly after it

This commit is contained in:
Evan Tschannen 2018-09-10 09:42:26 -07:00
parent c4eea395d4
commit e4bc6ed08c
1 changed files with 1 additions and 1 deletions

2
fdbclient/JsonString.cpp Executable file → Normal file
View File

@ -108,7 +108,7 @@ int JsonBuilder::coerceAsciiNumberToJSON(const char *s, int len, char *dst) {
}
// Allow one optional sign
if(*s == '-') {
if(*s == '-' || *s == '+') {
*wptr++ = *s++;
}