summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorGao Xiang <hsiangkao@linux.alibaba.com>2026-04-20 18:11:42 +0800
committerGao Xiang <hsiangkao@linux.alibaba.com>2026-04-21 16:56:08 +0800
commit2d8c7edcb661812249469f4a5b62e9339118846f (patch)
treef7c32af4009b567933fc8d669df0380cea1f587a /tools/lib/python
parentc99493ce409c3b98fec1616dbcf24c102e006deb (diff)
erofs: unify lcn as u64 for 32-bit platforms
As sashiko reported [1], `lcn` was typed as `unsigned long` (or `unsigned int` sometimes), which is only 32 bits wide on 32-bit platforms, which causes `(lcn << lclusterbits)` to be truncated at 4 GiB. In order to consolidate the logic, just use `u64` consistently around the codebase. [1] https://sashiko.dev/r/20260420034612.1899973-1-hsiangkao%40linux.alibaba.com Fixes: 152a333a5895 ("staging: erofs: add compacted compression indexes support") Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions