diff options
author | Guido van Rossum <guido@python.org> | 1991-07-27 21:38:43 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-07-27 21:38:43 (GMT) |
commit | 1492c27350aacebff19fa76c72c5fc529d84d53a (patch) | |
tree | 799b9cbb164c3b93b73f7f1b533fd9e22a0f17c0 /Modules/mathmodule.c | |
parent | 18315a0ecd4369f8c9c185ef53d1985e95479593 (diff) | |
download | cpython-1492c27350aacebff19fa76c72c5fc529d84d53a.zip cpython-1492c27350aacebff19fa76c72c5fc529d84d53a.tar.gz cpython-1492c27350aacebff19fa76c72c5fc529d84d53a.tar.bz2 |
Add some err_errno calls that were missing
Diffstat (limited to 'Modules/mathmodule.c')
-rw-r--r-- | Modules/mathmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 5a1cb85..424d79e 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -46,7 +46,7 @@ math_1(args, func) errno = 0; x = (*func)(x); if (errno != 0) - return NULL; + return err_errno(RuntimeError); else return newfloatobject(x); } @@ -62,7 +62,7 @@ math_2(args, func) errno = 0; x = (*func)(x, y); if (errno != 0) - return NULL; + return err_errno(RuntimeError); else return newfloatobject(x); } @@ -93,7 +93,7 @@ FUNC2(math_fmod, fmod) #endif FUNC1(math_log, log) FUNC1(math_log10, log10) -#ifdef applec /* MPW */ +#ifdef MPW_3_1 /* This hack is needed for MPW 3.1 but not for 3.2 ... */ FUNC2(math_pow, power) #else FUNC2(math_pow, pow) |