Fix GCC warnings: array subscript has type 'char'

Reported at NetBSD-current/amd64
GCC 4.8.4 (nb1 20141012)