Bug in version.h ?

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
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Bug in version.h ?

Post by el_supremo »

I came across what looks like a bug in version.h:

Code: Select all

#define MagickLibVersionNumber  6,2,6,5
#if (QuantumDepth == 8)
#define MagickQuantumDepth  "Q8"
#define MagickQuantumRange  "255"
#elif (QuantumDepth == 16)
#define MagickQuantumDepth  "Q16"
#define MagickQuantumRange  "65535"
#elif (QuantumDepth == 32)
#define MagickQuantumDepth  "Q32"
#define MagickQuantumRange  "4294967295"
#elif (QuantumDepth == 32)
#define MagickQuantumDepth  "Q64"
The last elif should be:

Code: Select all

#elif (QuantumDepth == 64)
Pete
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Luckily very few people use the 32 bits-per-pixel version of ImageMagick. Fixed in ImageMagick 6.2.7 Beta. Thanks.
Post Reply