mirror of
https://codeberg.org/wownero/wownero-lws
synced 2026-01-10 15:45:15 -08:00
Added unit tests, and fixed two bugs: (#53)
* Integer conversion checks in src/wire/read.h * Missing "boolean" function in wire::writer and derived types
This commit is contained in:
committed by
Lee *!* Clagett
parent
d233c72b5e
commit
c958ac7963
@@ -73,6 +73,12 @@ namespace wire
|
||||
return buf;
|
||||
}
|
||||
|
||||
void json_writer::boolean(const bool source)
|
||||
{
|
||||
formatter_.Bool(source);
|
||||
check_flush();
|
||||
}
|
||||
|
||||
void json_writer::integer(const int source)
|
||||
{
|
||||
formatter_.Int(source);
|
||||
|
||||
Reference in New Issue
Block a user