[Qemu-devel] [PATCH 08/15] blkdebug: fix enum comparison

2010-09-10 Thread Blue Swirl
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'

[Qemu-devel] [PATCH 08/15] blkdebug: fix enum comparison

2010-09-05 Thread Blue Swirl
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'