Opened 19 years ago
Closed 19 years ago
#1235 closed defect (fixed)
[PATCH] Avoid implicit type conversion in mapprimitive.c
Reported by: | Owned by: | mapserverbugs | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Build Problems | Version: | 4.4 |
Severity: | normal | Keywords: | |
Cc: |
Description
The calls to pow() in mapprimitive.c uses an integer instead of a floating point value as the second argument. This result in an implicit type conversion and a warning when compiling with -Wconversion. Here is a patch to change '2' to '2.0' in the calls to pow().
Attachments (1)
Change History (2)
by , 19 years ago
Attachment: | pow-float.diff added |
---|
comment:1 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks. I have applied the patch in the 4.5 CVS (mapprimitive.c r1.44)
Note:
See TracTickets
for help on using tickets.
Patch to avoid implicit type conversion in calls to pow()