RandomX: try to recover after an error

This commit is contained in:
SChernykh
2023-08-21 11:01:57 +02:00
parent 8d65a99fe4
commit bc0634a541
5 changed files with 32 additions and 12 deletions

View File

@@ -288,7 +288,7 @@ template<> struct log::Stream::Entry<const_buf>
struct hex_buf
{
FORCEINLINE hex_buf(const uint8_t* data, size_t size) : m_data(data), m_size(size) {}
FORCEINLINE hex_buf(const void* data, size_t size) : m_data(reinterpret_cast<const uint8_t*>(data)), m_size(size) {}
template<typename T>
explicit FORCEINLINE hex_buf(const T* data) : m_data(reinterpret_cast<const uint8_t*>(data)), m_size(sizeof(T)) {}