1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

update tonlib

tonlib: update
collator: increased collation speed for masterchain
fift: bugfixes
This commit is contained in:
ton 2019-10-04 16:08:02 +04:00
parent 7ea00ebfcf
commit dd745485e2
27 changed files with 313 additions and 172 deletions

View file

@ -1922,7 +1922,7 @@ bool AnyIntView<Tr>::export_bits_any(unsigned char* buff, int offs, unsigned bit
if (--ptr > buff) {
*ptr = (unsigned char)(v & 0xff);
} else {
int mask = (-0x100 >> offs) & 0xff;
int mask = (0xff00 >> offs) & 0xff;
if (((unsigned char)v ^ s) & mask) {
return false;
}
@ -1943,7 +1943,7 @@ bool AnyIntView<Tr>::export_bits_any(unsigned char* buff, int offs, unsigned bit
if (--ptr > buff) {
*ptr = (unsigned char)(v & 0xff);
} else {
int mask = (-0x100 >> offs) & 0xff;
int mask = (0xff00 >> offs) & 0xff;
if (((unsigned char)v ^ s) & mask) {
return false;
}
@ -1961,7 +1961,7 @@ bool AnyIntView<Tr>::export_bits_any(unsigned char* buff, int offs, unsigned bit
*ptr = (unsigned char)(v & 0xff);
v >>= 8;
}
int mask = (-0x100 >> offs) & 0xff;
int mask = (0xff00 >> offs) & 0xff;
if (((unsigned char)v ^ s) & mask) {
return false;
}