Declaration of MaxMap is buggy

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
aless

Declaration of MaxMap is buggy

Post by aless »

Hi,
in /include/magick/magick-type.h you declare MaxMap and some others as:

Code: Select all

#define MaxMap  ((Quantum) 65535)
#define QuantumRange  ((Quantum) 65535)
This is wrong because it forces me to be using the Magick namespace!
Please fix these two lines (and the other faulty #defines) to:

Code: Select all

#define MaxMap  ((Magick::Quantum) 65535)
#define QuantumRange  ((Magick::Quantum) 65535)
Thanks,
Alessandro
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Declaration of MaxMap is buggy

Post by magick »

We will fix the namespace problem is the next point release. Thanks.
Post Reply