We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00d39c3 commit e315f2cCopy full SHA for e315f2c
lib/vips/image.rb
@@ -138,14 +138,14 @@ def self.run_cmplx image, &block
138
image = image.cast :float
139
end
140
141
- new_format = image.format == :double ? :dpcomplex : :complex
+ new_format = (image.format == :double) ? :dpcomplex : :complex
142
image = image.copy format: new_format, bands: image.bands / 2
143
144
145
image = block.call(image)
146
147
unless Image.complex? original_format
148
- new_format = image.format == :dpcomplex ? :double : :float
+ new_format = (image.format == :dpcomplex) ? :double : :float
149
image = image.copy format: new_format, bands: image.bands * 2
150
151
0 commit comments