mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Various changes in TVM, github builds and tests (#793)
* Bugfixes in TVM and node * Upgrade to C++17 * Improve GitHub builds * Fix existing tests and partially integrate them into builds --------- Co-authored-by: neodiX42 <namlem@gmail.com> Co-authored-by: EmelyanenkoK <emelyanenko.kirill@gmail.com>
This commit is contained in:
parent
89700cb2aa
commit
5847897b37
122 changed files with 2889 additions and 4100 deletions
|
@ -1,4 +1,4 @@
|
|||
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
||||
|
||||
add_subdirectory(generate)
|
||||
set_source_files_properties(${TL_TON_API} PROPERTIES GENERATED TRUE)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
||||
|
||||
file(MAKE_DIRECTORY auto/tl)
|
||||
|
||||
|
|
|
@ -108,12 +108,13 @@ inline Status from_json(std::int32_t &to, JsonValue from) {
|
|||
inline Status from_json(bool &to, JsonValue from) {
|
||||
if (from.type() != JsonValue::Type::Boolean) {
|
||||
int32 x;
|
||||
auto type = from.type();
|
||||
auto status = from_json(x, std::move(from));
|
||||
if (status.is_ok()) {
|
||||
to = x != 0;
|
||||
return Status::OK();
|
||||
}
|
||||
return Status::Error(PSLICE() << "Expected bool, got " << from.type());
|
||||
return Status::Error(PSLICE() << "Expected bool, got " << type);
|
||||
}
|
||||
to = from.get_boolean();
|
||||
return Status::OK();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue