--- a/sources/network/bytestream.cpp Fri May 15 22:46:53 2015 +0300 +++ b/sources/network/bytestream.cpp Wed Jul 20 14:48:47 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); }