diff options
author | Underground78 <underground78@users.sourceforge.net> | 2016-01-14 01:05:04 +0300 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2016-01-18 00:14:10 +0300 |
commit | 70e2d38c3bf71a3ac57bdbe72dccb5d30e9dcc6f (patch) | |
tree | 1058d02ebeb4059bf27beacc88f34ec2b645d4ac | |
parent | 57a83b148f5d64b5f6950203b0b5e847b61dbc58 (diff) |
Silence a C4267 warning (conversion from size_t to int).
-rw-r--r-- | TimXmlRpc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TimXmlRpc.cpp b/TimXmlRpc.cpp index 3eb5c10..41ca557 100644 --- a/TimXmlRpc.cpp +++ b/TimXmlRpc.cpp @@ -740,7 +740,7 @@ bool XmlRpcValue::operator==(XmlRpcValue const& other) const int XmlRpcValue::size() const { switch (_type) { - case TypeString: return strlen(u.asString); + case TypeString: return int(strlen(u.asString)); case TypeBase64: return int(u.asBinary->size()); case TypeArray: return int(u.asArray->size()); case TypeStruct: return int(u.asStruct->size()); |