From d4dd943aeed1b9e1bf58d9732b457460bdc226fa Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 2 Jul 2016 19:16:56 +0200 Subject: [PATCH] casting, use (int) sizeof(), to swallow some warnings --- src/maths/KLU/klu_version.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maths/KLU/klu_version.h b/src/maths/KLU/klu_version.h index e64031c80..cb24c8ec1 100644 --- a/src/maths/KLU/klu_version.h +++ b/src/maths/KLU/klu_version.h @@ -13,9 +13,9 @@ #define NPRINT -#define BYTES(type,n) (sizeof (type) * (n)) +#define BYTES(type,n) ((int) sizeof (type) * (n)) #define CEILING(b,u) (((b)+(u)-1) / (u)) -#define UNITS(type,n) (CEILING (BYTES (type,n), sizeof (Unit))) +#define UNITS(type,n) (CEILING (BYTES (type,n), (int) sizeof (Unit))) #define DUNITS(type,n) (ceil (BYTES (type, (double) n) / sizeof (Unit))) #define GET_I_POINTER(LU, Xip, Xi, k) \