Skip to content
Snippets Groups Projects
Commit 712b4243 authored by Eduardo Habkost's avatar Eduardo Habkost
Browse files

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: default avatarEduardo Habkost <ehabkost@redhat.com>
parent 7e038b94
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment