OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
449909f
)
Work around absence of std::span constructor with clang 14.0.0
vauto3.0.0-alpha86-5fe4296cb
author
Eric Branlund
<ebranlund@fastmail.com>
Sat, 1 Jul 2023 20:40:37 +0000
(14:40 -0600)
committer
Eric Branlund
<ebranlund@fastmail.com>
Sat, 1 Jul 2023 20:40:37 +0000
(14:40 -0600)
src/util/sha256.cpp
patch
|
blob
|
history
diff --git
a/src/util/sha256.cpp
b/src/util/sha256.cpp
index
8b5d14a
..
1f2a275
100644
(file)
--- a/
src/util/sha256.cpp
+++ b/
src/util/sha256.cpp
@@
-142,7
+142,7
@@
void SHA256::update(const std::byte *message_array, size_t length)
*/
void SHA256::update(std::string_view message)
{
- const auto message_as_byte = std::as_bytes(std::span(message));
+ const auto message_as_byte = std::as_bytes(std::span(message
.begin(), message.size()
));
this->update(message_as_byte.data(), message_as_byte.size_bytes());
}