aboutsummaryrefslogtreecommitdiff
path: root/gold/stringpool.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-09-26 21:53:18 +0000
committerIan Lance Taylor <iant@google.com>2006-09-26 21:53:18 +0000
commitb3168e9da370d45ebe57989d9ef2774b7e791c13 (patch)
treefd2fe4869a9cabed88409ef210c1fcd42da0ef2d /gold/stringpool.cc
parent274e99f9ae3f56ab0364b3d0947b91deeb3528e1 (diff)
downloadgdb-b3168e9da370d45ebe57989d9ef2774b7e791c13.zip
gdb-b3168e9da370d45ebe57989d9ef2774b7e791c13.tar.gz
gdb-b3168e9da370d45ebe57989d9ef2774b7e791c13.tar.bz2
gcc 4.1.0 portability fixes.
Diffstat (limited to 'gold/stringpool.cc')
-rw-r--r--gold/stringpool.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/stringpool.cc b/gold/stringpool.cc
index 9a709e0..6437d01 100644
--- a/gold/stringpool.cc
+++ b/gold/stringpool.cc
@@ -31,7 +31,7 @@ Stringpool::Stringpool_hash::operator()(const char* s) const
// Fowler/Noll/Vo (FNV) hash (type FNV-1a).
if (sizeof(size_t) == 8)
{
- size_t result = 14695981039346656037ULL;
+ size_t result = static_cast<size_t>(14695981039346656037ULL);
while (*s != '\0')
{
result &= (size_t) *s++;