Blue Swirl 95ee3914bf 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>
2010-09-18 05:53:15 +00:00
..
2010-09-18 05:53:15 +00:00
2010-05-22 08:02:12 +00:00
2010-05-17 10:20:05 +02:00
2010-08-30 18:29:22 +02:00
2010-08-03 15:57:22 +02:00