1
0
Fork 0
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:
trinitil 2025-02-02 22:35:24 +04:00
parent f326c1e4b4
commit d4dc8b2960

View file

@ -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 {