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
963903a6
Commit
963903a6
authored
Jul 27, 1991
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some err_errno calls that were missing
parent
60ac458a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Modules/mathmodule.c
Modules/mathmodule.c
+3
-3
No files found.
Modules/mathmodule.c
View file @
963903a6
...
@@ -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
)
...
...
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