John Snow 159a9df021 ide: fix enum comparison for gcc 4.7
Apparently GCC gets bent over comparing enum values against zero.
Replace the conditional with something less readable.

Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20170921013821.1673-1-jsnow@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2017-09-22 13:23:53 +01:00
..
2016-10-04 13:28:07 +01:00
2017-09-20 19:05:26 -07:00
2017-08-02 18:30:13 -03:00
2017-09-21 16:34:27 +01:00
2017-09-20 17:35:36 +01:00
2017-09-22 13:23:53 +01:00
2016-05-18 15:04:27 +03:00
2016-01-29 15:07:25 +00:00
2017-09-21 16:36:56 +01:00
2017-09-21 16:36:56 +01:00
2016-10-28 18:17:24 +03:00
2017-09-15 10:29:48 +10:00
2017-08-30 18:23:25 +02:00