Browse Source

Fix MSVC dead code warning

default_compile_flags
vector-of-bool 5 years ago
parent
commit
5c9d25abed
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/browns/output.hpp

+ 3
- 3
src/browns/output.hpp View File

@@ -42,11 +42,11 @@ Digest parse_digest(std::string_view str) {
}
if (c >= '0' && c <= '9') {
return std::byte(c - '0');
}
if (c >= 'a' && c <= 'f') {
} else if (c >= 'a' && c <= 'f') {
return std::byte(c - 'a');
} else {
invalid();
}
invalid();
std::terminate();
};


Loading…
Cancel
Save