From 890611200ae097fd950b7092c652250823e6eddb Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Sun, 2 Oct 2016 18:59:32 -0500 Subject: [PATCH] [libpng16] Imported from libpng-1.6.26beta03.tar --- pngpriv.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pngpriv.h b/pngpriv.h index 233e62ed5..4d67d9d65 100644 --- a/pngpriv.h +++ b/pngpriv.h @@ -533,7 +533,8 @@ /* This implicitly assumes alignment is always to a power of 2. */ #ifdef png_alignof # define png_isaligned(ptr, type)\ - ((((const char*)ptr-(const char*)0) & (png_alignof(type)-1)) == 0) + (((type)((const char*)ptr-(const char*)0) & \ + (type)(png_alignof(type)-1)) == 0) #else # define png_isaligned(ptr, type) 0 #endif