Skip to content

Commit

Permalink
quelled clang warnings
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/image_science/dev/": change = 7182]
  • Loading branch information
zenspider committed Mar 13, 2012
1 parent 1816f8c commit 803fdcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/image_science.rb
Expand Up @@ -165,7 +165,7 @@ def cropped_thumbnail(size) # :yields: image
FIBITMAP *bitmap;
VALUE result = Qnil;
flags = fif == FIF_JPEG ? JPEG_ACCURATE : 0;
if (bitmap = FreeImage_Load(fif, input, flags)) {
if ((bitmap = FreeImage_Load(fif, input, flags))) {
FITAG *tagValue = NULL;
FreeImage_GetMetadata(FIMD_EXIF_MAIN, bitmap, "Orientation", &tagValue);
switch (tagValue == NULL ? 0 : *((short *) FreeImage_GetTagValue(tagValue))) {
Expand Down Expand Up @@ -226,7 +226,7 @@ def cropped_thumbnail(size) # :yields: image
VALUE result = Qnil;
GET_BITMAP(bitmap);
if (copy = FreeImage_Copy(bitmap, l, t, r, b)) {
if ((copy = FreeImage_Copy(bitmap, l, t, r, b))) {
copy_icc_profile(self, bitmap, copy);
result = wrap_and_yield(copy, self, 0);
}
Expand Down

0 comments on commit 803fdcd

Please sign in to comment.