From b86579bed65cc2ab8202ad6b0fb519d231260e6e Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 4 Feb 2015 18:03:20 +0900 Subject: [PATCH] eet - fix endianess break added by cedric a year ago in image decoding @fix this fixes T1987 - the commit that broke it was: commit 18d494489c5651aa152622a56579bbc1bda853cb Author: Cedric BAIL Date: Fri Jan 3 16:20:53 2014 +0900 eet: use eina_swap*() function instead of custom slower one. --- src/lib/eet/eet_image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/eet/eet_image.c b/src/lib/eet/eet_image.c index 4ac535a134..0fb2a94900 100644 --- a/src/lib/eet/eet_image.c +++ b/src/lib/eet/eet_image.c @@ -314,9 +314,9 @@ eet_data_image_jpeg_alpha_convert(int *size, /*---*/ -#define SWAP64(x) eina_swap64(x) -#define SWAP32(x) eina_swap32(x) -#define SWAP16(x) eina_swap16(x) +#define SWAP64(x) x = eina_swap64(x) +#define SWAP32(x) x = eina_swap32(x) +#define SWAP16(x) x = eina_swap16(x) #ifdef CONV8 # undef CONV8