projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93b826f
)
re PR go/47910 (typo in __go_map_next_prime)
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 9 Mar 2011 05:32:36 +0000
(
05:32
+0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Wed, 9 Mar 2011 05:32:36 +0000
(
05:32
+0000)
PR go/47910
Correct search for next prime in libgo map code.
From-SVN: r170808
libgo/runtime/go-new-map.c
patch
|
blob
|
history
diff --git
a/libgo/runtime/go-new-map.c
b/libgo/runtime/go-new-map.c
index 8ea6c714a11f65e14c49edf8962356840759550c..519f38f788adab499f8ab4683eefac0725ae815a 100644
(file)
--- a/
libgo/runtime/go-new-map.c
+++ b/
libgo/runtime/go-new-map.c
@@
-85,7
+85,7
@@
__go_map_next_prime (unsigned long n)
{
size_t mid;
- mid = (low + high
/ 2)
;
+ mid = (low + high
) / 2
;
/* Here LOW <= MID < HIGH. */