All chars are casted to unsigned chars, because the result of applying >> is defined for the latter.