Change-Id: I9bc616c9fd71e77c7701ce5d1f35878615c4f114
sclbyte num_keys, num_columns, num_rows;
sclint x, y, width, height;
SCLShiftState shift_index = context->get_shift_state();
- if (shift_index < 0 || shift_index >= SCL_SHIFT_STATE_MAX) shift_index = SCL_SHIFT_STATE_OFF;
+ if (shift_index >= SCL_SHIFT_STATE_MAX) shift_index = SCL_SHIFT_STATE_OFF;
if (context->get_caps_lock_mode()) {
shift_index = (shift_index == SCL_SHIFT_STATE_OFF) ? SCL_SHIFT_STATE_ON : SCL_SHIFT_STATE_OFF;
}