From baa75b9984d33ea49ffb76a73507b64d879166cc Mon Sep 17 00:00:00 2001 From: theraven Date: Tue, 13 Mar 2012 14:09:15 +0000 Subject: Import new version of libc++ into vendor branch. Approved by: dim (mentor) --- src/hash.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/hash.cpp') diff --git a/src/hash.cpp b/src/hash.cpp index 728b9bd..6f30d5a 100644 --- a/src/hash.cpp +++ b/src/hash.cpp @@ -181,7 +181,8 @@ __next_prime(size_t n) // Select first potential prime >= n // Known a-priori n >= L size_t k0 = n / L; - size_t in = std::lower_bound(indices, indices + M, n - k0 * L) - indices; + size_t in = static_cast(std::lower_bound(indices, indices + M, n - k0 * L) + - indices); n = L * k0 + indices[in]; while (true) { -- cgit v1.1