• antirez's avatar
    More robust object -> double conversion. · de474186
    antirez authored
    Certain checks were useless, at the same time certain malformed inputs
    were accepted without problems (emtpy strings parsed as zero).
    Cases where strtod() returns ERANGE but we still want to parse the input
    where ok in getDoubleFromObject() but not in the long variant.
    
    As a side effect of these fixes, this commit fixes #4391.
    de474186
object.c 41.4 KB