Opened 19 years ago

Last modified 19 years ago

#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 (1)

scale-enums.diff (3.3 KB ) - added by pere@… 19 years ago.
Patch to fix the enum issues in mapscale.c

Download all attachments as: .zip

Change History (2)

by pere@…, 19 years ago

Attachment: scale-enums.diff added

Patch to fix the enum issues in mapscale.c

comment:1 by pere@…, 19 years ago

By mistake, an UNUSED flag (see bug #1178) was included in this
patch.  It should not be part of this patch, and will break the
compile until bug #1178 is fixed.  Please remove it when applying
this patch.
Note: See TracTickets for help on using tickets.