Skip to content

Commit

Permalink
merge socketio#175: Support UInt64 values in string payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
cqm committed Oct 16, 2018
1 parent 42659b9 commit 47ebb26
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/internal/sio_packet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ namespace sio
{
return int_message::create(value.GetInt64());
}
else if (value.IsUint64())
{
return int_message::create(static_cast<int64_t>(value.GetUint64()));
}
else if(value.IsDouble())
{
return double_message::create(value.GetDouble());
Expand Down Expand Up @@ -182,14 +186,14 @@ namespace sio
}
return ptr;
}
else if(value.IsBool())
{
return bool_message::create(value.GetBool());
}
else if(value.IsNull())
{
return null_message::create();
}
else if(value.IsBool())
{
return bool_message::create(value.GetBool());
}
else if(value.IsNull())
{
return null_message::create();
}
return message::ptr();
}

Expand Down

0 comments on commit 47ebb26

Please sign in to comment.