Fix compiler warning in test program
[pspp-builds.git] / tests / data / datasheet-test.c
index a9f4bf2fb27f43b525fb764c07fb14c706d111d6..c46c268376c77031baff7e6c06fa14a44808bd65 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <ctype.h>
 #include <stdlib.h>
+#include <stdint.h>
 #include <string.h>
 
 #include <data/casereader-provider.h>
@@ -404,7 +405,7 @@ value_from_param (union value *value, int width, unsigned int idx)
   else
     {
       unsigned int hash = hash_int (idx, 0);
-      char *string = value_str_rw (value, width);
+      uint8_t *string = value_str_rw (value, width);
       int offset;
 
       assert (width < 32);