瀏覽代碼

constexpr fixes for md5.hpp

default_compile_flags
vector-of-bool 5 年之前
父節點
當前提交
db8d0d8efb
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/browns/md5.hpp

+ 2
- 2
src/browns/md5.hpp 查看文件

@@ -99,7 +99,7 @@ private:
}

constexpr static std::byte* _le_copy(std::uint64_t n, std::byte* ptr) noexcept {
auto n_ptr = reinterpret_cast<const std::byte*>(&n);
auto n_ptr = neo::byte_pointer(&n);
auto n_end = n_ptr + sizeof n;
while (n_ptr != n_end) {
*ptr++ = *n_ptr++;
@@ -174,7 +174,7 @@ public:
}
digest_type ret = {};
auto data = neo::byte_pointer(_running_digest.data());
auto dest = ret.data();
auto dest = ret.begin();
auto dest_end = ret.end();
while (dest != dest_end) {
*dest++ = *data++;

Loading…
取消
儲存