mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
fix tlb cpp code generator for enums
This commit is contained in:
parent
f326c1e4b4
commit
d4dc8b2960
1 changed files with 3 additions and 3 deletions
|
@ -23,9 +23,9 @@
|
|||
namespace tlbc {
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
* C++ CODE GENERATION
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
CppIdentSet global_cpp_ids;
|
||||
|
@ -3036,7 +3036,7 @@ void CppTypeCode::generate_store_enum_method(std::ostream& os, int options) {
|
|||
<< minl << ");\n";
|
||||
} else if (minl == maxl) {
|
||||
if (exact) {
|
||||
os << " return cb.store_long_rchk_bool(value, " << minl << ");\n";
|
||||
os << " return cb.store_ulong_rchk_bool(value, " << minl << ");\n";
|
||||
} else if (incremental_cons_tags && cons_num > (1 << (minl - 1))) {
|
||||
os << " return cb.store_uint_less(" << cons_num << ", value);\n";
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue