Newer
Older
Import / applications / MakePDF / 3rdParty / libharu / pr-patches / 0001-modified-isAligned-to-not-generate-warnings-on-platf.patch
From d54c4c42eccacf7b3500f480f40850916eeaa3c0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Viktor=20Szak=A0ts?= <harbour@syenar.net>
Date: Tue, 25 Jun 2013 13:48:19 +0200
Subject: [PATCH] modified isAligned() to not generate warnings on platforms
 were 'unsigned long' is not large enough to hold pointer (Win64). From:
 https://github.com/harbour/core/commit/adfcf7ad0403783e8963421b6e053886c66c265c

---
 src/hpdf_image_ccitt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hpdf_image_ccitt.c b/src/hpdf_image_ccitt.c
index 8672763..2937fc9 100644
--- a/src/hpdf_image_ccitt.c
+++ b/src/hpdf_image_ccitt.c
@@ -78,7 +78,7 @@ typedef struct {
 
 #define	Fax3State(tif)		(&(tif)->tif_data->b)
 #define	EncoderState(tif)	((tif)->tif_data)
-#define	isAligned(p,t)	((((unsigned long)(p)) & (sizeof (t)-1)) == 0)
+#define	isAligned(p,t)	((((size_t)(p)) & (sizeof (t)-1)) == 0)
 
 /* NB: the uint32 casts are to silence certain ANSI-C compilers */
 #define TIFFhowmany(x, y) ((((uint32)(x))+(((uint32)(y))-1))/((uint32)(y)))
-- 
2.21.1 (Apple Git-122.3)