Improve API docs for <memory> and <new>
[gcc.git] / libstdc++-v3 / libsupc++ / hash_bytes.cc
index 3a555c73a52b684f9e916c7a8a4f1f88de314232..bd12188e52458387521d488031e947f6c5efa2d0 100644 (file)
@@ -139,7 +139,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
     // Remove the bytes not divisible by the sizeof(size_t).  This
     // allows the main loop to process the data as 64-bit integers.
-    const int len_aligned = len & ~0x7;
+    const size_t len_aligned = len & ~(size_t)0x7;
     const char* const end = buf + len_aligned;
     size_t hash = seed ^ (len * mul);
     for (const char* p = buf; p != end; p += 8)