tdb2: rename internal hashfn and logfn to hash_fn and log_fn.
[ccan] / ccan / cast / cast.h
index dfb95b59772611bf53582b4b4ef132970104a829..daebd8572391f07dfb17ae20c341c114c2507c3d 100644 (file)
 #else
 #define cast_sign_compatible(type, expr)               \
        (sizeof(*(type)0) == 1 && sizeof(*(expr)) == 1)
-#define cast_const_compat1(expr, type)         \
-       (sizeof(*(expr)) == sizeof(*(type)0))
-#define cast_const_compat2(expr, type)         \
-       (sizeof(**(expr)) == sizeof(**(type)0))
-#define cast_const_compat3(expr, type)                 \
-       (sizeof(***(expr)) == sizeof(***(type)0))
+#define cast_const_compat1(expr, type)         (1)
+#define cast_const_compat2(expr, type)         (1)
+#define cast_const_compat3(expr, type)         (1)
 #endif
 #endif /* CCAN_CAST_H */