From e0e253a2a4eb55a24f12273d8cddb41b6f519c8f Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 4 Mar 2010 22:34:49 +0000 Subject: [PATCH] fixed geoip build --- src/session_impl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 7ad079b0b..5b53651b6 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -796,10 +796,10 @@ namespace aux { for (int i = 0; i < settings->dict_size(); ++i) { std::pair item = settings->dict_at(i); - int as_num = atoi(item.firstc_str()); - if (item.second.type() != lazy_entry::int_t || item.second.int_value() == 0) continue; + int as_num = atoi(item.first.c_str()); + if (item.second->type() != lazy_entry::int_t || item.second->int_value() == 0) continue; int& peak = m_as_peak[as_num]; - if (peak < item.second.integer()) peak = item.second.integer(); + if (peak < item.second->int_value()) peak = item.second->int_value(); } } #endif