summaryrefslogtreecommitdiff
path: root/rfc4251.h
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2014-05-26 20:41:08 +0200
committerTimo Weingärtner <timo@tiwe.de>2014-05-26 20:41:08 +0200
commit5cc6f72612187001f70255f6097437381cf49bba (patch)
tree1889323901a4fc8c5e96d9350956c7fc67947048 /rfc4251.h
parent023a56e7d7483531219280af2e17760168cfaf7e (diff)
downloadssh-agent-filter-5cc6f72612187001f70255f6097437381cf49bba.tar.gz
rfc4251uint64: fix byte order conversion
Diffstat (limited to 'rfc4251.h')
-rw-r--r--rfc4251.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rfc4251.h b/rfc4251.h
index 3c291a2..35f97fb 100644
--- a/rfc4251.h
+++ b/rfc4251.h
@@ -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;
}