Corrected invalid values assigned to enum homun_type variables

- Fixes a warning in clang-5.0.0 (and a potentially incorrect/undefined
  behavior of the related code)

Signed-off-by: Haru <haru@dotalux.com>