From 5267fbacf379023bab3c77710c10250dbc346551 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 2 Feb 2011 23:41:22 +0200 Subject: Silence a couple of compiler warnings --- soltools/support/simstr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'soltools') diff --git a/soltools/support/simstr.cxx b/soltools/support/simstr.cxx index a98e1ee4b39e..de9890a4a060 100644 --- a/soltools/support/simstr.cxx +++ b/soltools/support/simstr.cxx @@ -50,7 +50,7 @@ Simstr::Simstr(const char * s_) } else { - len = strlen(s_); + len = (int)strlen(s_); sz = new char[len+1]; memcpy(sz,s_,len+1); } @@ -97,7 +97,7 @@ Simstr::Simstr( const char * anybytes, int firstBytesPos, int nrOfBytes) { - unsigned slen = strlen(anybytes); + unsigned slen = (unsigned)strlen(anybytes); if (anybytes == 0 || slen <= unsigned(firstBytesPos)) { len = 0; -- cgit