Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created July 18, 2013 19:18
Show Gist options
  • Save springmeyer/6032164 to your computer and use it in GitHub Desktop.
Save springmeyer/6032164 to your computer and use it in GitHub Desktop.
In file included from ../fss/node_fss.cpp:20:
../fss/geocoder/fss.hpp:135:31: warning: comparison of integers of different signs: 'const int' and 'size_type'
(aka 'unsigned long') [-Wsign-compare]
if (index < base_dict_.size())
~~~~~ ^ ~~~~~~~~~~~~~~~~~
../fss/node_fss.cpp:349:33: note: in instantiation of member function
'geocoder::fss_engine<geocoder::damerau_levenshtein_distance<std::__1::basic_string<char32_t,
std::__1::char_traits<char32_t>, std::__1::allocator<char32_t> > >,
std::__1::hash<std::__1::basic_string<char32_t, std::__1::char_traits<char32_t>,
std::__1::allocator<char32_t> > > >::search' requested here
for ( auto && p : dict->search(std::string(begin,end), distance, num_results))
^
In file included from ../fss/node_fss.cpp:21:
@artemp
Copy link

artemp commented Jul 18, 2013

@springmeyer - yep, index should be std::size_t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment