From: Ian Lance Taylor Date: Wed, 9 Mar 2011 05:32:36 +0000 (+0000) Subject: re PR go/47910 (typo in __go_map_next_prime) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a60133507681bd0f1e1fcff7035e7bf34c288b22;p=gcc.git re PR go/47910 (typo in __go_map_next_prime) PR go/47910 Correct search for next prime in libgo map code. From-SVN: r170808 --- diff --git a/libgo/runtime/go-new-map.c b/libgo/runtime/go-new-map.c index 8ea6c714a11..519f38f788a 100644 --- 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. */