X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fdata%2Fcase.h;h=d00c2ad37badd69cc80f9991d99a70bf8d88084c;hb=97f9b8ad137e333af9b3c767556d28dfda93a461;hp=36feb15f6b073a82533bc71161f3b8f7a00f4a76;hpb=5c3291dc396b795696e94f47780308fd7ace6fc4;p=pspp diff --git a/src/data/case.h b/src/data/case.h index 36feb15f6b..d00c2ad37b 100644 --- a/src/data/case.h +++ b/src/data/case.h @@ -94,10 +94,10 @@ union value *case_data_rw_idx (struct ccase *, size_t idx); double case_num (const struct ccase *, const struct variable *); double case_num_idx (const struct ccase *, size_t idx); -const char *case_str (const struct ccase *, const struct variable *); -const char *case_str_idx (const struct ccase *, size_t idx); -char *case_str_rw (struct ccase *, const struct variable *); -char *case_str_rw_idx (struct ccase *, size_t idx); +const uint8_t *case_str (const struct ccase *, const struct variable *); +const uint8_t *case_str_idx (const struct ccase *, size_t idx); +uint8_t *case_str_rw (struct ccase *, const struct variable *); +uint8_t *case_str_rw_idx (struct ccase *, size_t idx); int case_compare (const struct ccase *, const struct ccase *, const struct variable *const *, size_t n_vars); @@ -135,7 +135,7 @@ case_unshare (struct ccase *c) static inline struct ccase * case_ref (const struct ccase *c_) { - struct ccase *c = (struct ccase *) c_; + struct ccase *c = CONST_CAST (struct ccase *, c_); c->ref_cnt++; return c; }