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);
}
for (i = 0; i < arc->n_specs; i++)
{
struct arc_spec *spec = &arc->specs[i];
- int width = var_get_width (spec->src);
struct arc_item *item, *next;
HMAP_FOR_EACH_SAFE (item, next, struct arc_item, hmap_node,
spec->items)
{
- value_destroy (&item->from, width);
+ value_destroy (&item->from, item->width);
hmap_delete (spec->items, &item->hmap_node);
free (item);
}
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