diff --git a/include/frei0r.hpp b/include/frei0r.hpp index 5eed2dcf..ef12be4f 100644 --- a/include/frei0r.hpp +++ b/include/frei0r.hpp @@ -101,7 +101,7 @@ namespace frei0r { case F0R_PARAM_BOOL : *static_cast(param) - = *static_cast(ptr) > 0.5 ? 1.0 : 0.0; + = *static_cast(ptr) ? 1.0 : 0.0; break; case F0R_PARAM_DOUBLE: *static_cast(param)