From c0195ae221472c0116496a1f2792e9468da57ba0 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 26 Sep 2007 15:32:49 +0000 Subject: [PATCH] fix for last optimization --- src/torrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index ae3901fab..d1b429b55 100755 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -1801,7 +1801,7 @@ namespace libtorrent // look up the country code in the map const int size = sizeof(country_map)/sizeof(country_map[0]); country_entry tmp = {country, ""}; - country_entry* i = + country_entry const* i = std::lower_bound(country_map, country_map + size, tmp , bind(&country_entry::code, _1) < bind(&country_entry::code, _2)); if (i == country_map + size