Ticket #1237 (new defect)
[PATCH] Make sure enums are passed as such to msCalculateScale() and msInchesPerUnit() + fix argument type
| Reported by: | pere@… | Owned by: | mapserverbugs |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Build Problems | Version: | 4.4 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
The units argument passed to msCalculateScale() and msInchesPerUnit() is used as if it is an enum. Convert the argument to an enum to avoid compile warnings. Also, make sure the second arguemnt passed to msInchesPerUnit() is a floating point value, to avoid implicit type conversion.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

