mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
lib: Fix new BUG_ON() implementation again
This time, the macro didn't wrap the condition, resulting in calls like BUG_ON(size > 100) being expanded to g_assert(!size > 100), when what we wanted was BUG_ON(!(size > 100)). See9cca501650,ff09456cf5, and egg on my face.
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
#define fp_warn g_warning
|
||||
#define fp_err g_error
|
||||
|
||||
#define BUG_ON(condition) g_assert(!condition)
|
||||
#define BUG_ON(condition) g_assert(!(condition))
|
||||
#define BUG() g_assert_not_reached()
|
||||
|
||||
enum fp_dev_state {
|
||||
|
||||
Reference in New Issue
Block a user