diff --git a/Cable/Parsers/cableFunctionType.cxx b/Cable/Parsers/cableFunctionType.cxx index 369683f..9532018 100644 --- a/Cable/Parsers/cableFunctionType.cxx +++ b/Cable/Parsers/cableFunctionType.cxx @@ -133,7 +133,7 @@ void FunctionType::AddArgument(Type* argument, bool hasDefault, const char *name //---------------------------------------------------------------------------- unsigned int FunctionType::GetNumberOfArguments() const { - return m_ArgumentTypeVector.size(); + return static_cast(m_ArgumentTypeVector.size()); } //---------------------------------------------------------------------------- diff --git a/Cable/Parsers/cableXMLParser.cxx b/Cable/Parsers/cableXMLParser.cxx index 4188d60..e587e7f 100644 --- a/Cable/Parsers/cableXMLParser.cxx +++ b/Cable/Parsers/cableXMLParser.cxx @@ -105,7 +105,7 @@ bool XMLParser::ParseStream() in.read(buffer, bufferSize); if(in.gcount()) { - if(!this->ParseBuffer(buffer, in.gcount())) + if(!this->ParseBuffer(buffer, static_cast(in.gcount()))) { return false; } @@ -208,7 +208,7 @@ bool XMLParser::ParseBuffer(const char* buffer, unsigned int count) //---------------------------------------------------------------------------- bool XMLParser::ParseBuffer(const char* buffer) { - return this->ParseBuffer(buffer, strlen(buffer)); + return this->ParseBuffer(buffer, static_cast(strlen(buffer))); } //---------------------------------------------------------------------------- diff --git a/Cable/Parsers/cableXMLSourceElement.cxx b/Cable/Parsers/cableXMLSourceElement.cxx index d095497..f566ccc 100644 --- a/Cable/Parsers/cableXMLSourceElement.cxx +++ b/Cable/Parsers/cableXMLSourceElement.cxx @@ -94,7 +94,7 @@ XMLSourceElement* XMLSourceElement::GetElement(const char* name) const //---------------------------------------------------------------------------- unsigned int XMLSourceElement::GetNumberOfNestedElements() const { - return m_NestedElementVector.size(); + return static_cast(m_NestedElementVector.size()); } //----------------------------------------------------------------------------