Ticket #792 (closed defect: fixed)
[raster] Addband regresssion test fail on some systems.
| Reported by: | pracine | Owned by: | pracine |
|---|---|---|---|
| Priority: | blocker | Milestone: | PostGIS 2.0.0 |
| Component: | raster | Version: | trunk |
| Keywords: | Cc: |
Description
Because casting of float to int produce undefined behaviour.
We must explicitly clamp the value instead of just casting it. See discussion at:
http://postgis.refractions.net/pipermail/postgis-devel/2011-January/011354.html
Change History
Note: See
TracTickets for help on using
tickets.
