summary refs log tree commit diff stats
path: root/hw/omap_i2c.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-09-18 05:53:15 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-09-18 05:53:15 +0000
commit95ee3914bfd551aeec49932a400530141865acad (patch)
tree62631426a34f98f8d630a4eca2429044fc2008d4 /hw/omap_i2c.c
parent603ff77610d82d81d2071fd8d981241b5e288598 (diff)
downloadfocaccia-qemu-95ee3914bfd551aeec49932a400530141865acad.tar.gz
focaccia-qemu-95ee3914bfd551aeec49932a400530141865acad.zip
blkdebug: fix enum comparison
The signedness of enum types depend on the compiler implementation.
Therefore the check for negative values may or may not be meaningful.

Fix by explicitly casting to a signed integer.

Since the values are also checked earlier against event_names
table, this is an internal error. Change the 'if' to 'assert'.

This also avoids a warning with GCC flag -Wtype-limits.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/omap_i2c.c')
0 files changed, 0 insertions, 0 deletions