summaryrefslogtreecommitdiff
path: root/php/src/IcePHP/Properties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'php/src/IcePHP/Properties.cpp')
-rw-r--r--php/src/IcePHP/Properties.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/php/src/IcePHP/Properties.cpp b/php/src/IcePHP/Properties.cpp
index b1ab29f21a1..f55fc59cc55 100644
--- a/php/src/IcePHP/Properties.cpp
+++ b/php/src/IcePHP/Properties.cpp
@@ -62,7 +62,7 @@ ZEND_METHOD(Ice_Properties, __toString)
}
str.append(p->first + "=" + p->second);
}
- RETURN_STRINGL(STRCAST(str.c_str()), str.length(), 1);
+ RETURN_STRINGL(STRCAST(str.c_str()), static_cast<int>(str.length()), 1);
}
catch(const IceUtil::Exception& ex)
{
@@ -88,7 +88,7 @@ ZEND_METHOD(Ice_Properties, getProperty)
try
{
string val = _this->getProperty(propName);
- RETURN_STRINGL(STRCAST(val.c_str()), val.length(), 1);
+ RETURN_STRINGL(STRCAST(val.c_str()), static_cast<int>(val.length()), 1);
}
catch(const IceUtil::Exception& ex)
{
@@ -123,7 +123,7 @@ ZEND_METHOD(Ice_Properties, getPropertyWithDefault)
try
{
string val = _this->getPropertyWithDefault(propName, defaultValue);
- RETURN_STRINGL(STRCAST(val.c_str()), val.length(), 1);
+ RETURN_STRINGL(STRCAST(val.c_str()), static_cast<int>(val.length()), 1);
}
catch(const IceUtil::Exception& ex)
{