Fixed warning: array subscript is of type 'char' [-Wchar-subscripts].