Commit 75465d88 authored by Olaf Bergmann's avatar Olaf Bergmann fix non-constant expression in function cast()

As cast() does a reinterpret_cast on its argument, it must not be
declared as constexpr.
parent 92903cf5
......@@ -170,7 +170,7 @@ rnd(uint8_t *out, size_t len) {
constexpr static const uint8_t *cast(const char *p) {
static const uint8_t *cast(const char *p) {
static_assert(std::is_same<unsigned char, uint8_t>::value, "uint8_t is not unsigned char");
return reinterpret_cast<const uint8_t *>(p);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment