fix for last optimization

This commit is contained in:
Arvid Norberg 2007-09-26 15:32:49 +00:00
parent d97f4cd835
commit c0195ae221
1 changed files with 1 additions and 1 deletions

View File

@ -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