Browse Source

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

pre-master-46
rlar 10 years ago
committed by Holger Vogt
parent
commit
f690a2d5e9
  1. 4
      src/maths/KLU/klu_version.h

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

Loading…
Cancel
Save