From 8974c7dfa2402770d26b72980ac17bbec282481d Mon Sep 17 00:00:00 2001 From: sage Date: Sat, 26 Aug 2006 03:37:47 +0000 Subject: [PATCH] 64bit? git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@818 29311d96-e01e-0410-9327-a35deaab8ce9 --- ceph/common/LogType.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ceph/common/LogType.h b/ceph/common/LogType.h index 4ec1e50eed084..30291acdb971f 100644 --- a/ceph/common/LogType.h +++ b/ceph/common/LogType.h @@ -29,7 +29,7 @@ using namespace __gnu_cxx; class LogType { protected: - hash_map<__uint32_t, int> keymap; + hash_map<__uint64_t, int> keymap; vector keys; set inc_keys; @@ -38,7 +38,7 @@ class LogType { // HACK to avoid the hash table as often as possible... // cache recent key name lookups in a small ring buffer const static int cache_keys = 10; - __uint32_t kc_ptr[cache_keys]; + __uint64_t kc_ptr[cache_keys]; int kc_val[cache_keys]; int kc_pos; @@ -59,7 +59,7 @@ class LogType { i = keys.size(); keys.push_back(key); - __uint32_t p = (__uint32_t)key; + __uint64_t p = (__uint64_t)key; keymap[p] = i; if (is_inc) inc_keys.insert(i); @@ -78,7 +78,7 @@ class LogType { } int lookup_key(const char* key) { - __uint32_t p = (__uint32_t)key; + __uint64_t p = (__uint64_t)key; if (keymap.count(p)) return keymap[p]; -- 2.39.5