Remove useless cast

This commit is contained in:
Florent Le Coz
2014-03-10 00:12:42 +01:00
parent 601159e8e2
commit 930696e48a
+1 -1
View File
@@ -153,7 +153,7 @@ void SocketHandler::on_recv()
this->on_connection_close(); this->on_connection_close();
this->close(); this->close();
} }
else if (-1 == static_cast<ssize_t>(size)) else if (-1 == size)
{ {
log_warning("Error while reading from socket: " << strerror(errno)); log_warning("Error while reading from socket: " << strerror(errno));
this->on_connection_close(); this->on_connection_close();