Commit b212245
committed
In guc.c, ignore ERANGE errors from strtod().
Instead, just proceed with the infinity or zero result that it should
return for overflow/underflow. This avoids a platform dependency,
in that various versions of strtod are inconsistent about whether they
signal ERANGE for a value that's specified as infinity.
It's possible this won't be enough to remove the buildfarm failures
we're seeing from ac75959, in which case I'll take out the infinity
test case that commit added. But first let's see if we can fix it.
Discussion: https://postgr.es/m/E1h33xk-0001Og-Gs@gemulon.postgresql.org1 parent 08cecfa commit b212245
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6240 | 6240 | | |
6241 | 6241 | | |
6242 | 6242 | | |
6243 | | - | |
6244 | 6243 | | |
| 6244 | + | |
| 6245 | + | |
6245 | 6246 | | |
6246 | | - | |
6247 | | - | |
6248 | | - | |
6249 | | - | |
| 6247 | + | |
| 6248 | + | |
| 6249 | + | |
| 6250 | + | |
| 6251 | + | |
6250 | 6252 | | |
6251 | 6253 | | |
6252 | 6254 | | |
| |||
0 commit comments