Commit 0e351db9 authored by Bastien Nocera's avatar Bastien Nocera

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)).

See 9cca5016,
ff09456c, and egg on my face.
parent 9cca5016
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment