Skip to content

Commit f245a81

Browse files
committed
fix some warnings
1 parent 29e82a6 commit f245a81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/internal/sio_client_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ namespace sio
310310
unsigned client_impl::next_delay() const
311311
{
312312
//no jitter, fixed power root.
313-
return min<unsigned>(m_reconn_delay * pow(1.5,m_reconn_made),m_reconn_delay_max);
313+
return min<unsigned>(static_cast<unsigned>(m_reconn_delay * pow(1.5,m_reconn_made)),m_reconn_delay_max);
314314
}
315315

316316
socket::ptr client_impl::get_socket_locked(std::string const& nsp)

src/internal/sio_packet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ namespace sio
144144
if (mem_it!=value.MemberEnd() && mem_it->value.GetBool()) {
145145

146146
int num = value["num"].GetInt();
147-
if(num >= 0 && num < buffers.size())
147+
if(num >= 0 && num < static_cast<int>(buffers.size()))
148148
{
149149
return binary_message::create(buffers[num]);
150150
}

0 commit comments

Comments
 (0)