DescriptionAdd boundary test case to StringToDouble
The max presentable double is HUGE_VAL=(2^53-1)*(2^971). And
(2^53)*(2^971) is considered overflow.
Added cases above and below (2^53-0.5)*(2^971). The value above is
overflow and the value below is not.
std::strtod on linux doesn't pass the above case (it returns inf correctly
but doesn't set errno=ERANGE).
BUG=593512
Committed: https://crrev.com/7bd66b6c465395634479807d17b5d1cf9f5ac6d6
Cr-Commit-Position: refs/heads/master@{#425496}
Patch Set 1 #
Messages
Total messages: 10 (5 generated)
|