Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
target-i386: Don't left shift negative constant
Left shift of negative values is undefined behavior. Detected by clang: qemu/target-i386/translate.c:2423:26: runtime error: left shift of negative value -8 This changes the code to reverse the sign after the left shift. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
- Loading branch information