From 99378e63a9025778136093928e58e1d12f6b2efe Mon Sep 17 00:00:00 2001 From: William Hart Date: Tue, 1 Apr 2014 14:05:42 +0100 Subject: [PATCH] Fix a warning on MinGW64. --- tests/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/misc.c b/tests/misc.c index 1794943d..f928402a 100644 --- a/tests/misc.c +++ b/tests/misc.c @@ -145,8 +145,8 @@ mp_limb_t (*calling_conventions_function) _PROTO ((ANYARGS)); void * align_pointer (void *p, size_t align) { - unsigned long d; - d = ((unsigned long) p) & (align-1); + mpir_ui d; + d = ((mpir_ui) p) & (align-1); d = (d != 0 ? align-d : 0); return (void *) (((char *) p) + d); }