mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated tonlib
This commit is contained in:
parent
c860ce3d1e
commit
3002321eb7
22 changed files with 576 additions and 109 deletions
|
@ -1021,9 +1021,9 @@ void CppTypeCode::generate_tag_pfx_selector(std::ostream& os, std::string nl, co
|
|||
}
|
||||
os << "};" << nl << "return ctab[1 + ";
|
||||
if (simple) {
|
||||
os << "(long)cs.prefetch_ulong(" << d << ")];";
|
||||
os << "(long long)cs.prefetch_ulong(" << d << ")];";
|
||||
} else {
|
||||
os << "(long)cs.bselect" << (d >= min_size ? "(" : "_ext(") << d << ", " << HexConstWriter{mask} << ")];";
|
||||
os << "(long long)cs.bselect" << (d >= min_size ? "(" : "_ext(") << d << ", " << HexConstWriter{mask} << ")];";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1153,7 +1153,7 @@ void CppTypeCode::generate_get_tag_body(std::ostream& os, std::string nl) {
|
|||
os << ")) {";
|
||||
for (int i = 0; i < l; i++) {
|
||||
if (A[i] != 0) {
|
||||
if ((long)A[i] > 0) {
|
||||
if ((long long)A[i] > 0) {
|
||||
int j;
|
||||
for (j = 0; j < i; j++) {
|
||||
if (A[j] == A[i]) {
|
||||
|
@ -1165,7 +1165,7 @@ void CppTypeCode::generate_get_tag_body(std::ostream& os, std::string nl) {
|
|||
}
|
||||
}
|
||||
os << nl << "case " << i << ":";
|
||||
if ((long)A[i] > 0) {
|
||||
if ((long long)A[i] > 0) {
|
||||
int j;
|
||||
for (j = i + 1; j < l; j++) {
|
||||
if (A[j] == A[i]) {
|
||||
|
|
|
@ -687,7 +687,7 @@ unsigned long long BinTrie::build_submap(int depth, unsigned long long A[]) cons
|
|||
} else {
|
||||
std::memset(A + n, 0, n * 8);
|
||||
}
|
||||
if (A[n] != A[n - 1] || (long)A[n] < 0) {
|
||||
if (A[n] != A[n - 1] || (long long)A[n] < 0) {
|
||||
r2 |= 1;
|
||||
} else {
|
||||
r2 &= ~1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue