We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b2e14e + 6578aae commit 67224f7Copy full SHA for 67224f7
websocketpp/frame.hpp
@@ -610,6 +610,9 @@ inline size_t prepare_masking_key(const masking_key_type& key) {
610
* to zero and less than sizeof(size_t).
611
*/
612
inline size_t circshift_prepared_key(size_t prepared_key, size_t offset) {
613
+ if (offset == 0) {
614
+ return prepared_key;
615
+ }
616
if (lib::net::is_little_endian()) {
617
size_t temp = prepared_key << (sizeof(size_t)-offset)*8;
618
return (prepared_key >> offset*8) | temp;
0 commit comments