From 1167576409f7a636c95ea32e69f2ea61393bd3c1 Mon Sep 17 00:00:00 2001 From: David Hilvert Date: Sat, 13 Jun 2009 21:28:57 +0000 Subject: [PATCH] d2/ppm: In read macro, replace 'continue' with a more general if block. --- d2/ppm.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/d2/ppm.h b/d2/ppm.h index 8903531..5c95631 100644 --- a/d2/ppm.h +++ b/d2/ppm.h @@ -192,10 +192,9 @@ static int ppm_short_little_endian_check() { error_ppm(f_name);\ }\ \ - if (!transfer)\ - continue;\ + if (transfer)\ + fwrite(&ival, sizeof(channel_type), 1, f_dest);\ \ - fwrite(&ival, sizeof(channel_type), 1, f_dest);\ } static inline ale_image read_ppm(const char *filename, exposure *e, unsigned int bayer, int init_reference_gain = 0) { -- 2.11.4.GIT