Opened 19 years ago

Closed 19 years ago

#1235 closed defect (fixed)

[PATCH] Avoid implicit type conversion in mapprimitive.c

Reported by: pere@… 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)

pow-float.diff (3.0 KB ) - added by pere@… 19 years ago.
Patch to avoid implicit type conversion in calls to pow()

Download all attachments as: .zip

Change History (2)

by pere@…, 19 years ago

Attachment: pow-float.diff added

Patch to avoid implicit type conversion in calls to pow()

comment:1 by dmorissette, 19 years ago

Resolution: fixed
Status: newclosed
Thanks. I have applied the patch in the 4.5 CVS (mapprimitive.c r1.44)
Note: See TracTickets for help on using tickets.