ioport: use INT64_MAX for IO ranges
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 10 Mar 2012 16:57:10 +0000 (16:57 +0000)
committerAvi Kivity <avi@redhat.com>
Mon, 19 Mar 2012 13:17:21 +0000 (15:17 +0200)
commit4200872b37ee59b5432d010becaabf84709798c5
treef7bc0032ae184266c5383a79be1cf227f26b1f4a
parent5bd33de6635577744b3c10dd3913bfe8c5ffaf40
ioport: use INT64_MAX for IO ranges

Expression UINT64_MAX + 1 will make the range bigger than
what can be represented with a 64 bit type. This would
trigger an assert in int128_get64() after the next patch.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
ioport.c