diff options
Diffstat (limited to 'include/crow/websocket.h')
-rw-r--r-- | include/crow/websocket.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crow/websocket.h b/include/crow/websocket.h index a1e8e8f..c3ec331 100644 --- a/include/crow/websocket.h +++ b/include/crow/websocket.h @@ -216,7 +216,7 @@ namespace crow [this](const boost::system::error_code& ec, std::size_t bytes_transferred) { is_reading = false; - remaining_length_ = ntohs(*(uint16_t*)&remaining_length_); + remaining_length_ = ntohs((uint16_t)remaining_length_); #ifdef CROW_ENABLE_DEBUG if (!ec && bytes_transferred != 2) { |