diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-02-02 23:41:22 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-02-03 00:44:27 +0200 |
commit | 5267fbacf379023bab3c77710c10250dbc346551 (patch) | |
tree | 66a460395db258ca1f1b10311119e2534987b824 /soltools | |
parent | 0d2a89ff2676735e76eb39b690775aa29701a2a7 (diff) |
Silence a couple of compiler warnings
Diffstat (limited to 'soltools')
-rw-r--r-- | soltools/support/simstr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; |