Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
022aac78
Commit
022aac78
authored
Jan 30, 2012
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: fix float64 hash
R=ken2 CC=golang-dev
https://golang.org/cl/5580046
parent
ed7a8f71
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
alg.c
src/pkg/runtime/alg.c
+1
-1
No files found.
src/pkg/runtime/alg.c
View file @
022aac78
...
...
@@ -263,7 +263,7 @@ runtime·f64hash(uintptr *h, uintptr s, void *a)
uint64
u
;
USED
(
s
);
f
=
*
(
float
32
*
)
a
;
f
=
*
(
float
64
*
)
a
;
if
(
f
==
0
)
hash
=
0
;
// +0, -0
else
if
(
f
!=
f
)
...
...
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