]> git.proxmox.com Git - mirror_qemu.git/commit
test-char: fix undefined behavior
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Mar 2019 13:06:04 +0000 (14:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 12 Mar 2019 14:18:40 +0000 (15:18 +0100)
commitedc6e5015da4d215aaa09bb93060f8cf090cccff
treecbce43e7ac3cff2e687e592f009522e57afe3a47
parent377b155bde451d5ac545fbdcdfbf6ca17a4228f5
test-char: fix undefined behavior

Fixes the following failure with --enable-debug:

/tmp/qemu-test/src/tests/test-char.c:838:10: runtime error: load of value 40, which is not a valid value for type bool
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /tmp/qemu-test/src/tests/test-char.c:838:10 in

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tests/test-char.c