mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-23 03:32:38 +00:00
Correct a casting issue in the rapidjson implementation
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
parent
1943db6f20
commit
16752474d9
@ -25,7 +25,7 @@ byte_t::byte_t(simdjson::dom::array input) noexcept
|
||||
#ifdef USE_RAPIDJSON_JSON
|
||||
|
||||
byte_t::byte_t(const rapidjson::Value& input)
|
||||
: m_address((uint8_t)input[0].GetInt64()),
|
||||
: m_address((uint16_t)input[0].GetInt64()),
|
||||
m_value((uint8_t)input[1].GetInt64()) {
|
||||
assert(input.Size() == 2);
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ cycle_t::cycle_t(simdjson::dom::array input) noexcept
|
||||
#ifdef USE_RAPIDJSON_JSON
|
||||
|
||||
cycle_t::cycle_t(const rapidjson::Value& input)
|
||||
: m_address((uint8_t)input[0].GetInt64()),
|
||||
: m_address((uint16_t)input[0].GetInt64()),
|
||||
m_value((uint8_t)input[1].GetInt64()),
|
||||
m_action(to_action(input[2].GetString())) {
|
||||
assert(input.Size() == 3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user