X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Fautorecode.c;h=ce818cff1169f7e2fd61a15d926942fe405474ca;hb=c75794cffb05769b71a346af8513a3e8dde55f94;hp=a18a94c6bd5fa5514a7fb69e43ac5a58e4f1697c;hpb=8f40c87f9db239685a174ffc526cb91f0c76ee97;p=pspp diff --git a/src/language/stats/autorecode.c b/src/language/stats/autorecode.c index a18a94c6bd..ce818cff11 100644 --- a/src/language/stats/autorecode.c +++ b/src/language/stats/autorecode.c @@ -248,7 +248,7 @@ cmd_autorecode (struct lexer *lexer, struct dataset *ds) the source value from whence the new value comes. */ if (src_width > 0) { - const char *str = (const char *) value_str (from, src_width); + const char *str = CHAR_CAST_BUG (const char*, value_str (from, src_width)); recoded_value = recode_string (UTF8, dict_get_encoding (dict), str, src_width); } @@ -357,8 +357,8 @@ compare_arc_items (const void *a_, const void *b_, const void *aux UNUSED) if ( width_b == 0 && width_a != 0) return +1; - return buf_compare_rpad ((const char *) value_str (&(*a)->from, width_a), width_a, - (const char *) value_str (&(*b)->from, width_b), width_b); + return buf_compare_rpad (CHAR_CAST_BUG (const char *, value_str (&(*a)->from, width_a)), width_a, + CHAR_CAST_BUG (const char *, value_str (&(*b)->from, width_b)), width_b); } static int