casting, use (int) sizeof(), to swallow some warnings

This commit is contained in:
rlar 2016-07-02 19:16:56 +02:00
parent 786782fda0
commit d4dd943aee
1 changed files with 2 additions and 2 deletions

View File

@ -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) \