From: Mikko Rasa Date: Sun, 15 Jun 2014 09:02:54 +0000 (+0300) Subject: Fix 64-bit compile errors X-Git-Url: http://git.tdb.fi/?p=netvis.git;a=commitdiff_plain;h=cb4b88367edde2829e40015f0bc02d653db2a6a8 Fix 64-bit compile errors --- diff --git a/source/host.cpp b/source/host.cpp index 54f8b20..afa61b7 100644 --- a/source/host.cpp +++ b/source/host.cpp @@ -38,15 +38,15 @@ void Host::set_name(const string &n) if(local) { - unsigned dot = name.find('.'); + string::size_type dot = name.find('.'); short_name = name.substr(0, dot); } else { - unsigned dot = name.size(); + string::size_type dot = name.size(); for(unsigned i=0; (dot>0 && dot!=string::npos); ++i) { - unsigned prev = name.rfind('.', dot-1); + string::size_type prev = name.rfind('.', dot-1); if(prev+151) break; dot = prev;