We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a56876e commit 04fee75Copy full SHA for 04fee75
src/uint256.h
@@ -6,6 +6,7 @@
6
#ifndef BITCOIN_UINT256_H
7
#define BITCOIN_UINT256_H
8
9
+#include <crypto/common.h>
10
#include <span.h>
11
12
#include <assert.h>
@@ -84,15 +85,7 @@ class base_blob
84
85
86
uint64_t GetUint64(int pos) const
87
{
- const uint8_t* ptr = m_data + pos * 8;
88
- return ((uint64_t)ptr[0]) | \
89
- ((uint64_t)ptr[1]) << 8 | \
90
- ((uint64_t)ptr[2]) << 16 | \
91
- ((uint64_t)ptr[3]) << 24 | \
92
- ((uint64_t)ptr[4]) << 32 | \
93
- ((uint64_t)ptr[5]) << 40 | \
94
- ((uint64_t)ptr[6]) << 48 | \
95
- ((uint64_t)ptr[7]) << 56;
+ return ReadLE64(m_data + pos * 8);
96
}
97
98
template<typename Stream>
0 commit comments