modmath: Remove stray "pragma GCC diagnostic pop"
This caused an error when building on macos: ``` ../../py/modmath.c:247:36: error: pragma diagnostic pop could not pop, no matching push [-Werror,-Wunknown-pragmas] #pragma GCC diagnostic pop ^ 1 error generated. ``` The pragma was half-removed during the merge of micropython.
This commit is contained in:
parent
256fcd6cc9
commit
ca74f282fd
@ -244,7 +244,6 @@ STATIC mp_obj_t mp_math_log(size_t n_args, const mp_obj_t *args) {
|
||||
if (base <= (mp_float_t)0.0) {
|
||||
math_error();
|
||||
} else if (base == (mp_float_t)1.0) {
|
||||
#pragma GCC diagnostic pop
|
||||
mp_raise_msg(&mp_type_ZeroDivisionError, MP_ERROR_TEXT("division by zero"));
|
||||
}
|
||||
return mp_obj_new_float(l / MICROPY_FLOAT_C_FUN(log)(base));
|
||||
|
Loading…
Reference in New Issue
Block a user