Skip to content

Commit

Permalink
Fix #13
Browse files Browse the repository at this point in the history
  • Loading branch information
h3x4n1um committed Feb 18, 2021
1 parent 8d295f3 commit 4a28b8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rton-json/include/rton-json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "include/json_fifo.hpp"

const std::string architecture = std::to_string(uint16_t(round(log2(UINTPTR_MAX)))) + "-bit";
const std::string ver = "3.1.0";
const std::string ver = "3.1.1";

std::string to_hex_string(const uint64_t &q);
std::string to_hex_string(const std::vector <uint8_t> &a);
2 changes: 1 addition & 1 deletion rton-json/src/rton2json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ json_fifo::json decode_RTON_chunk(const std::vector <uint8_t> &byte_array, std::

json_fifo::json decode_RTON(const std::vector <uint8_t> &byte_array, std::size_t &pos, std::vector<std::string> &array_0x91, std::vector<std::string> &array_0x93, json_fifo::json &rton_info){
std::size_t pre_pos = pos;
json_fifo::json res,
json_fifo::json res = json_fifo::json::object(),
js_key = decode_RTON_chunk(byte_array, pos, array_0x91, array_0x93, rton_info);
while(js_key.size()){
if(!js_key.is_string()) throw std::logic_error("Error! Key at " + to_hex_string(pre_pos) + " is not a string!!!");
Expand Down

0 comments on commit 4a28b8b

Please sign in to comment.