diff options
author | Timo Weingärtner <timo@tiwe.de> | 2014-05-26 20:41:08 +0200 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2014-05-26 20:41:08 +0200 |
commit | 5cc6f72612187001f70255f6097437381cf49bba (patch) | |
tree | 1889323901a4fc8c5e96d9350956c7fc67947048 | |
parent | 023a56e7d7483531219280af2e17760168cfaf7e (diff) | |
download | ssh-agent-filter-5cc6f72612187001f70255f6097437381cf49bba.tar.gz |
rfc4251uint64: fix byte order conversion
-rw-r--r-- | rfc4251.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -135,8 +135,8 @@ inline rfc4251uint64::rfc4251uint64 (uint64_t v) { inline rfc4251uint64::operator uint64_t () const { uint64_t ret{0}; for (uint_fast8_t i{0}; i < 8; ++i) { - ret |= buf[i]; ret <<= 8; + ret |= static_cast<uint8_t>(buf[i]); } return ret; } |