Use macros from cast.h instead of literal casts
[pspp-builds.git] / src / data / case-tmpfile.c
index b2444b9bc5f411ac9d826b9f093972461652b40b..58e437ad1b45686000c0b320e028e0f0d8ad641a 100644 (file)
@@ -52,7 +52,7 @@ width_to_n_bytes (int width)
 static void *
 value_to_data (const union value *value_, int width)
 {
-  union value *value = (union value *) value_;
+  union value *value = CONST_CAST (union value *, value_);
   assert (sizeof value->f == sizeof (double));
   if (width == 0)
     return &value->f;