The function appears to work correctly for all inputs between -128 and 128, but may display unexpected behavior for inputs outside of this interval.

