mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-08-08 09:25:00 +00:00
rapidjson can use an std::string constructor.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@ byte_t::byte_t(simdjson::dom::element input) noexcept
|
|||||||
byte_t::byte_t(simdjson::dom::array input) noexcept
|
byte_t::byte_t(simdjson::dom::array input) noexcept
|
||||||
: m_iterator(input.begin()),
|
: m_iterator(input.begin()),
|
||||||
m_address((uint16_t)(uint64_t)*m_iterator),
|
m_address((uint16_t)(uint64_t)*m_iterator),
|
||||||
m_value((uint8_t)(uint64_t)* ++m_iterator) {
|
m_value((uint8_t)(uint64_t)*++m_iterator) {
|
||||||
assert(input.size() == 2);
|
assert(input.size() == 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -80,7 +80,7 @@ void opcode_test_suite_t::parse() {
|
|||||||
#ifdef USE_RAPIDJSON_JSON
|
#ifdef USE_RAPIDJSON_JSON
|
||||||
|
|
||||||
void opcode_test_suite_t::parse() {
|
void opcode_test_suite_t::parse() {
|
||||||
m_raw.Parse(m_contents.c_str());
|
m_raw.Parse(m_contents);
|
||||||
m_contents.clear();
|
m_contents.clear();
|
||||||
m_contents.shrink_to_fit();
|
m_contents.shrink_to_fit();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user