Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
2643b009
Commit
2643b009
authored
Nov 01, 2001
by
Gabriel Dos Reis
Committed by
Gabriel Dos Reis
Nov 01, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* include/bits/std_complex.h (abs): Fix thinko.
From-SVN: r46700
parent
6126a380
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
libstdc++-v3/ChangeLog
+1
-1
libstdc++-v3/include/bits/std_complex.h
+1
-1
No files found.
libstdc++-v3/ChangeLog
View file @
2643b009
...
...
@@ -39,7 +39,7 @@
* include/bits/std_complex.h (_Norm_helper): New class template.
(norm): Tweak.
(abs): Tweak.
(abs): Tweak.
Fix Thinko.
2001-10-31 Benjamin Kosnik <bkoz@redhat.com>
...
...
libstdc++-v3/include/bits/std_complex.h
View file @
2643b009
...
...
@@ -405,7 +405,7 @@ namespace std
{
_Tp
__x
=
__z
.
real
();
_Tp
__y
=
__z
.
imag
();
const
_Tp
__s
=
abs
(
abs
(
__x
),
abs
(
__y
));
const
_Tp
__s
=
max
(
abs
(
__x
),
abs
(
__y
));
if
(
__s
==
_Tp
())
// well ...
return
__s
;
__x
/=
__s
;
...
...
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