From 2a79c6110ba3a35a27ac87a2309e26522a1ea1cd Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 18 Dec 2013 17:17:03 +0000 Subject: [PATCH] tiny stuff --- libvips/arithmetic/divide.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/libvips/arithmetic/divide.c b/libvips/arithmetic/divide.c index 64578271..b9ba7532 100644 --- a/libvips/arithmetic/divide.c +++ b/libvips/arithmetic/divide.c @@ -174,21 +174,20 @@ vips_divide_buffer( VipsArithmetic *arithmetic, int x; - /* Keep types here in sync with bandfmt_divide[] + /* Keep types here in sync with vips_divide_format_table[] * below. */ switch( vips_image_get_format( im ) ) { - case VIPS_FORMAT_CHAR: RLOOP( signed char, float ); break; - case VIPS_FORMAT_UCHAR: RLOOP( unsigned char, float ); break; - case VIPS_FORMAT_SHORT: RLOOP( signed short, float ); break; - case VIPS_FORMAT_USHORT: RLOOP( unsigned short, float ); break; - case VIPS_FORMAT_INT: RLOOP( signed int, float ); break; - case VIPS_FORMAT_UINT: RLOOP( unsigned int, float ); break; - case VIPS_FORMAT_FLOAT: RLOOP( float, float ); break; - case VIPS_FORMAT_DOUBLE: RLOOP( double, double ); break; - - case VIPS_FORMAT_COMPLEX: CLOOP( float ); break; - case VIPS_FORMAT_DPCOMPLEX: CLOOP( double ); break; + case VIPS_FORMAT_CHAR: RLOOP( signed char, float ); break; + case VIPS_FORMAT_UCHAR: RLOOP( unsigned char, float ); break; + case VIPS_FORMAT_SHORT: RLOOP( signed short, float ); break; + case VIPS_FORMAT_USHORT: RLOOP( unsigned short, float ); break; + case VIPS_FORMAT_INT: RLOOP( signed int, float ); break; + case VIPS_FORMAT_UINT: RLOOP( unsigned int, float ); break; + case VIPS_FORMAT_FLOAT: RLOOP( float, float ); break; + case VIPS_FORMAT_DOUBLE: RLOOP( double, double ); break; + case VIPS_FORMAT_COMPLEX: CLOOP( float ); break; + case VIPS_FORMAT_DPCOMPLEX: CLOOP( double ); break; default: g_assert( 0 );