mirror of
https://github.com/urbit/shrub.git
synced 2024-12-30 07:35:19 +03:00
ames: fix _fine_lop()
This commit is contained in:
parent
6da640693a
commit
249c9a2c1a
@ -1452,7 +1452,7 @@ _ames_skip(u3_prel* pre_u)
|
||||
static inline c3_w
|
||||
_fine_lop(c3_w fra_w)
|
||||
{
|
||||
return fra_w - (fra_w % FINE_PAGE) + 1;
|
||||
return 1 + (((fra_w - 1) / FINE_PAGE) * FINE_PAGE);
|
||||
}
|
||||
|
||||
/* _fine_pack_scry_cb(): receive packets for datum out of fine
|
||||
|
Loading…
Reference in New Issue
Block a user