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
..
2017-09-21 16:36:56 +01:00
2017-01-27 18:07:59 +01:00
2017-01-24 23:26:52 +03:00
2017-09-08 09:30:55 +10:00
2017-09-22 13:23:53 +01:00
2017-06-23 11:51:50 +02:00
2017-06-20 14:31:32 +02:00
2017-09-08 16:15:17 +03:00
2017-09-15 10:29:48 +10:00
2017-02-28 17:10:00 +00:00
2017-01-27 18:07:59 +01:00
2017-09-21 16:36:56 +01:00
2017-09-21 16:36:56 +01:00
2017-01-27 18:07:59 +01:00
2017-04-24 12:32:12 +01:00
2017-06-01 18:49:22 +02:00
2017-09-08 16:15:17 +03:00