Skip to content

Commit

Permalink
Push extra digits into floatval just to avoid some silly roundoff iss…
Browse files Browse the repository at this point in the history
…ue in the future
  • Loading branch information
pramsey committed May 12, 2020
1 parent fe937d8 commit 65f54f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ogr_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,10 +942,10 @@ ogrSpatialFilterToList(const OgrFdwSpatialFilter* spatial_filter)
if (spatial_filter)
{
l = lappend(l, makeInteger(spatial_filter->ogrfldnum));
l = lappend(l, makeFloat(psprintf("%g", spatial_filter->minx)));
l = lappend(l, makeFloat(psprintf("%g", spatial_filter->miny)));
l = lappend(l, makeFloat(psprintf("%g", spatial_filter->maxx)));
l = lappend(l, makeFloat(psprintf("%g", spatial_filter->maxy)));
l = lappend(l, makeFloat(psprintf("%.17g", spatial_filter->minx)));
l = lappend(l, makeFloat(psprintf("%.17g", spatial_filter->miny)));
l = lappend(l, makeFloat(psprintf("%.17g", spatial_filter->maxx)));
l = lappend(l, makeFloat(psprintf("%.17g", spatial_filter->maxy)));
}
return l;
}
Expand Down

0 comments on commit 65f54f4

Please sign in to comment.