Permalink
Browse files

Fix a ruby 1.9 bug

  • Loading branch information...
1 parent fa21d80 commit 5230d89aba066164c7e79e3997a60e5cfffbedca @chriseppstein chriseppstein committed Feb 22, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/compass/sass_extensions/functions/image_size.rb
@@ -86,10 +86,10 @@ def next
when 0xC0..0xC3, 0xC5..0xC7, 0xC9..0xCB, 0xCD..0xCF # SOF markers
length, @bits, @height, @width, components = io.readsof
raise 'malformed JPEG' unless length == 8 + components * 3
- when 0xD9, 0xDA: break # EOI, SOS
- when 0xFE: @comment = io.readframe # COM
- when 0xE1: io.readframe # APP1, contains EXIF tag
- else io.readframe # ignore frame
+ when 0xD9, 0xDA then break # EOI, SOS
+ when 0xFE then @comment = io.readframe # COM
+ when 0xE1 then io.readframe # APP1, contains EXIF tag
+ else io.readframe # ignore frame
end
end
end

0 comments on commit 5230d89

Please sign in to comment.