From 532a6c63e9e7ed879a8e30ac42d54488cfb4dbb3 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 11 Jun 2015 12:43:17 +0200 Subject: [PATCH] isl_imath_fits_slong_p: pass correct argument to mp_int_to_int The use of the wrong type should not affect correctness since the value stored in the argument is never used, but it does produce a warning in xlc. Signed-off-by: Sven Verdoolaege --- isl_imath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_imath.c b/isl_imath.c index 959b5e78..fc8e70a6 100644 --- a/isl_imath.c +++ b/isl_imath.c @@ -16,7 +16,7 @@ uint32_t isl_imath_hash(mp_int v, uint32_t hash) */ int isl_imath_fits_slong_p(mp_int op) { - unsigned long out; + long out; mp_result res = mp_int_to_int(op, &out); return res == MP_OK; } -- 2.11.4.GIT