[ubsan] Use unsigned int instead enum where needed (#1270)
authorEbrahim Byagowi <ebrahim@gnu.org>
Thu, 18 Oct 2018 07:36:37 +0000 (11:06 +0330)
committerGitHub <noreply@github.com>
Thu, 18 Oct 2018 07:36:37 +0000 (11:06 +0330)
commit03e144135b5c691e3942d1aef917fe2246665fb6
tree22433972835770d85116474b7276721e8e05ce3b
parent64df6b0b0f9d221e14811084f2412a01cf4deb46
[ubsan] Use unsigned int instead enum where needed (#1270)

Actually the check is right,

On -myanmar.hh, on that particular switch, OT_C is indic_category_t
but OT_D is myanmar_category_t so we are mixing the types in one variable.

And on -arabic.cc, step can goes one number higher than step_t enum in the
loop so we are actually using it as an unsinged int.
.circleci/config.yml
src/hb-ot-shape-complex-arabic.cc
src/hb-ot-shape-complex-myanmar.hh