Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
93fc06f9
Commit
93fc06f9
authored
May 09, 2008
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert the temporary change in r62624
parent
00f5a256
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
Modules/mathmodule.c
Modules/mathmodule.c
+3
-11
No files found.
Modules/mathmodule.c
View file @
93fc06f9
...
@@ -167,7 +167,6 @@ math_1_to_whatever(PyObject *arg, double (*func) (double),
...
@@ -167,7 +167,6 @@ math_1_to_whatever(PyObject *arg, double (*func) (double),
int
can_overflow
)
int
can_overflow
)
{
{
double
x
,
r
;
double
x
,
r
;
char
err_message
[
150
];
x
=
PyFloat_AsDouble
(
arg
);
x
=
PyFloat_AsDouble
(
arg
);
if
(
x
==
-
1
.
0
&&
PyErr_Occurred
())
if
(
x
==
-
1
.
0
&&
PyErr_Occurred
())
return
NULL
;
return
NULL
;
...
@@ -184,16 +183,9 @@ math_1_to_whatever(PyObject *arg, double (*func) (double),
...
@@ -184,16 +183,9 @@ math_1_to_whatever(PyObject *arg, double (*func) (double),
if
(
can_overflow
)
if
(
can_overflow
)
PyErr_SetString
(
PyExc_OverflowError
,
PyErr_SetString
(
PyExc_OverflowError
,
"math range error (overflow)"
);
"math range error (overflow)"
);
else
{
else
/* temporary code to include the inputs
PyErr_SetString
(
PyExc_ValueError
,
and outputs to func in the error
"math domain error (singularity)"
);
message */
sprintf
(
err_message
,
"math domain error (singularity) "
"%.17g -> %.17g"
,
x
,
r
);
PyErr_SetString
(
PyExc_ValueError
,
err_message
);
}
return
NULL
;
return
NULL
;
}
}
if
(
Py_IS_FINITE
(
r
)
&&
errno
&&
is_error
(
r
))
if
(
Py_IS_FINITE
(
r
)
&&
errno
&&
is_error
(
r
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment