aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/objects
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/objects')
-rw-r--r--src/modules/objects/class_socket.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/objects/class_socket.cpp b/src/modules/objects/class_socket.cpp
index 54587fa9c..829b50ae0 100644
--- a/src/modules/objects/class_socket.cpp
+++ b/src/modules/objects/class_socket.cpp
@@ -502,9 +502,8 @@ KVSO_CLASS_FUNCTION(socket,write)
{
KviKvsVariant * pVar = pArray->at(i);
kvs_int_t iValue;
- if(pVar->isInteger())
+ if(pVar->asInteger(iValue))
{
- pVar->asInteger(iValue);
if(iValue < 256 && iValue >= 0)
{
m_pOutBuffer->append((unsigned char)iValue);