summaryrefslogtreecommitdiff
path: root/m68k-semi.c
diff options
context:
space:
mode:
authorPierre Riteau <Pierre.Riteau@irisa.fr>2009-09-08 11:53:37 +0200
committerAurelien Jarno <aurelien@aurel32.net>2009-09-26 21:26:26 +0200
commit02c068c3ae8ec2954ea03de61d6627c555d88bff (patch)
tree4972354f615d02c1aadf1b91e59e97e49bc8b0a7 /m68k-semi.c
parente0fed6cca7a5a8583798be758db3896828ced7f8 (diff)
downloadqemu-02c068c3ae8ec2954ea03de61d6627c555d88bff.tar.gz
Fix and improve qint_from_int64_test
Use a long long integer constant to fix a compilation error (integer constant is too large for 'long' type). Use a better value for testing, as -1 makes the test pass even if qi->value is of type uint32_t, float or double. This was suggested by Reimar Döffinger <Reimar.Doeffinger@gmx.de>. Also, make the test fail when qi->value is of type double or float by casting qi->value to int64_t, to avoid value being promoted to the type of qi->value. Signed-off-by: Pierre Riteau <Pierre.Riteau@irisa.fr> Acked-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'm68k-semi.c')
0 files changed, 0 insertions, 0 deletions