Fix compiler error

hb-ot-var-common.hh:758:32: error: implicit conversion from 'int' to 'char' changes value from 191 to -65 [-Werror,
-Wconstant-conversion]
      *it++ = (DELTAS_ARE_ZERO | 63);
pull/4324/head
Behdad Esfahbod 1 year ago
parent fcc5d3df39
commit c14f94f76b
  1. 4
      src/hb-ot-var-common.hh

@ -758,14 +758,14 @@ struct tuple_delta_t
while (run_length >= 64)
{
*it++ = (DELTAS_ARE_ZERO | 63);
*it++ = char (DELTAS_ARE_ZERO | 63);
run_length -= 64;
encoded_len++;
}
if (run_length)
{
*it++ = (DELTAS_ARE_ZERO | (run_length - 1));
*it++ = char (DELTAS_ARE_ZERO | (run_length - 1));
encoded_len++;
}
return encoded_len;

Loading…
Cancel
Save