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

Fix 256+ depth pruned cell deserialization

This commit is contained in:
OmicronTau 2021-09-16 13:04:57 +03:00 committed by main
parent cc86a0724a
commit 64e68a47ec

View file

@ -34,7 +34,7 @@ class DataCell : public Cell {
td::bitstring::bits_store_long(dest, depth, depth_bits);
}
static td::uint16 load_depth(const td::uint8* src) {
return td::bitstring::bits_load_ulong(src, depth_bits) & 0xff;
return td::bitstring::bits_load_ulong(src, depth_bits) & 0xffff;
}
protected: