From: Kevin Day Date: Sat, 9 Jun 2012 16:36:02 +0000 (-0500) Subject: Bugfix: fix f_error_is_not_error logic X-Git-Tag: 0.3.0~10 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=428f8a5598fb6002038838e533c948a0ccd032a3;p=fll Bugfix: fix f_error_is_not_error logic The logic is wrong. Just use the error bit instead. Remove f_error_bit_not_error as it is not needed. --- diff --git a/level_0/f_errors/c/errors.h b/level_0/f_errors/c/errors.h index 6bcc012..3be016e 100644 --- a/level_0/f_errors/c/errors.h +++ b/level_0/f_errors/c/errors.h @@ -138,17 +138,16 @@ extern "C"{ #ifndef _di_f_error_masks_ // f_status is required to be exactly 16 bits, the first two high order bits represent error and warning respectively. - #define f_error_bit_error 32768 - #define f_error_bit_warning 16384 - #define f_error_bit_mask 49152 - #define f_error_bit_fine 16383 - #define f_error_bit_not_error 32767 + #define f_error_bit_error 32768 + #define f_error_bit_warning 16384 + #define f_error_bit_mask 49152 + #define f_error_bit_fine 16383 #define f_error_is_error(status) status & f_error_bit_error #define f_error_is_warning(status) status & f_error_bit_warning #define f_error_is_problem(status) status & f_error_bit_mask // this is either a warning or an error #define f_error_is_fine(status) (status & f_error_bit_mask) == 0 - #define f_error_is_not_error(status) (status & f_error_bit_not_error) == 0 + #define f_error_is_not_error(status) (status & f_error_bit_error) == 0 #define f_error_set_error(status) status | f_error_bit_error #define f_error_set_warning(status) status | f_error_bit_warning