From 1943db6f204db05e7d4c98b7979347d2ce32d062 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Tue, 19 Oct 2021 10:57:27 +0100 Subject: [PATCH] rapidjson can use an std::string constructor. Signed-off-by: Adrian Conlon --- M6502/HarteTest_6502/byte_t.cpp | 2 +- M6502/HarteTest_6502/opcode_test_suite_t.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/M6502/HarteTest_6502/byte_t.cpp b/M6502/HarteTest_6502/byte_t.cpp index 1a7f937..dfae972 100644 --- a/M6502/HarteTest_6502/byte_t.cpp +++ b/M6502/HarteTest_6502/byte_t.cpp @@ -16,7 +16,7 @@ byte_t::byte_t(simdjson::dom::element input) noexcept byte_t::byte_t(simdjson::dom::array input) noexcept : m_iterator(input.begin()), 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); } diff --git a/M6502/HarteTest_6502/opcode_test_suite_t.cpp b/M6502/HarteTest_6502/opcode_test_suite_t.cpp index f5ccda7..698fca3 100644 --- a/M6502/HarteTest_6502/opcode_test_suite_t.cpp +++ b/M6502/HarteTest_6502/opcode_test_suite_t.cpp @@ -80,7 +80,7 @@ void opcode_test_suite_t::parse() { #ifdef USE_RAPIDJSON_JSON void opcode_test_suite_t::parse() { - m_raw.Parse(m_contents.c_str()); + m_raw.Parse(m_contents); m_contents.clear(); m_contents.shrink_to_fit(); }