|
@ -43,9 +43,9 @@ inline void update(_T& _sha, _U const& _value) |
|
|
{ |
|
|
{ |
|
|
int i = 0; |
|
|
int i = 0; |
|
|
for (_U v = _value; v; ++i, v >>= 8) {} |
|
|
for (_U v = _value; v; ++i, v >>= 8) {} |
|
|
bytes buf(i); |
|
|
byte buf[32]; |
|
|
toBigEndian(_value, buf); |
|
|
toBigEndian(_value, bytesRef(buf, i)); |
|
|
_sha.Update(buf.data(), buf.size()); |
|
|
_sha.Update(buf, i); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
template <class _T> |
|
|
template <class _T> |
|
|