Skip to content

Commit

Permalink
Attempt to fix bug #18 in original repo. (to enable Ruby bundling on …
Browse files Browse the repository at this point in the history
…Arch Linux)
  • Loading branch information
bricef committed Aug 19, 2013
1 parent 962d56c commit 689271f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions ext/RMagick/extconf.rb
Expand Up @@ -152,14 +152,6 @@ def check_partial_imagemagick_versions()

$magick_version = `Magick-config --version`.chomp

# Ensure ImageMagick is not configured for HDRI
unless checking_for("HDRI disabled version of ImageMagick") do
not (`Magick-config --version`["HDRI"])
end
exit_failure "\nCan't install RMagick #{RMAGICK_VERS}."+
"\nRMagick does not work when ImageMagick is configured for High Dynamic Range Images."+
"\nDon't use the --enable-hdri option when configuring ImageMagick.\n"
end

# Save flags
$CFLAGS = ENV["CFLAGS"].to_s + " " + `Magick-config --cflags`.chomp
Expand Down
2 changes: 1 addition & 1 deletion ext/RMagick/rmimage.c
Expand Up @@ -9819,7 +9819,7 @@ Image_pixel_color(int argc, VALUE *argv, VALUE self)
#else
IndexPacket *indexes = GetIndexes(image);
#endif
old_color = image->colormap[*indexes];
old_color = image->colormap[(unsigned long)*indexes];
}
if (!image->matte)
{
Expand Down

0 comments on commit 689271f

Please sign in to comment.