Merge pull request #4740 from jepler/modmath-pragma

modmath: Remove stray "pragma GCC diagnostic pop"
This commit is contained in:
Scott Shawcroft 2021-05-10 12:34:54 -07:00 committed by GitHub
commit bc18cbd5bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -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));