re PR go/47910 (typo in __go_map_next_prime)
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 9 Mar 2011 05:32:36 +0000 (05:32 +0000)
committerIan 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

index 8ea6c714a11f65e14c49edf8962356840759550c..519f38f788adab499f8ab4683eefac0725ae815a 100644 (file)
@@ -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.  */