Commit 963903a6 authored by Guido van Rossum's avatar Guido van Rossum

Add some err_errno calls that were missing

parent 60ac458a
...@@ -46,7 +46,7 @@ math_1(args, func) ...@@ -46,7 +46,7 @@ math_1(args, func)
errno = 0; errno = 0;
x = (*func)(x); x = (*func)(x);
if (errno != 0) if (errno != 0)
return NULL; return err_errno(RuntimeError);
else else
return newfloatobject(x); return newfloatobject(x);
} }
...@@ -62,7 +62,7 @@ math_2(args, func) ...@@ -62,7 +62,7 @@ math_2(args, func)
errno = 0; errno = 0;
x = (*func)(x, y); x = (*func)(x, y);
if (errno != 0) if (errno != 0)
return NULL; return err_errno(RuntimeError);
else else
return newfloatobject(x); return newfloatobject(x);
} }
...@@ -93,7 +93,7 @@ FUNC2(math_fmod, fmod) ...@@ -93,7 +93,7 @@ FUNC2(math_fmod, fmod)
#endif #endif
FUNC1(math_log, log) FUNC1(math_log, log)
FUNC1(math_log10, log10) 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) FUNC2(math_pow, power)
#else #else
FUNC2(math_pow, pow) FUNC2(math_pow, pow)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment