From cb4b88367edde2829e40015f0bc02d653db2a6a8 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 15 Jun 2014 12:02:54 +0300 Subject: [PATCH] Fix 64-bit compile errors --- source/host.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.43.0