diff -r 8fb1c657e0b0 -r d9073c13dc98 sources/network/bytestream.cpp --- a/sources/network/bytestream.cpp Wed Jul 20 13:29:03 2016 +0300 +++ b/sources/network/bytestream.cpp Wed Jul 20 15:03:37 2016 +0300 @@ -149,7 +149,7 @@ ensure_read_space (2); short int result = 0; - for (int i = 0; i < 2; ++i) + for (int i : range(2)) result |= m_cursor[i] << (i * 8); m_cursor += 2; @@ -163,7 +163,7 @@ ensure_read_space (4); long int result = 0; - for (int i = 0; i < 4; ++i) + for (int i : range(4)) result |= m_cursor[i] << (i * 8); m_cursor += 4; @@ -258,7 +258,7 @@ { grow_to_fit (2); - for (int i = 0; i < 2; ++i) + for (int i : range(2)) write ((val >> (i * 8)) & 0xFF); } @@ -268,7 +268,7 @@ { grow_to_fit (4); - for (int i = 0; i < 4; ++i) + for (int i : range(4)) write ((val >> (i * 8)) & 0xFF); }