a52: fix undefined left shift of negative value