fix mismach error

This commit is contained in:
bingzhou
2025-08-14 09:05:28 +00:00
parent 1af040e5b7
commit b22db60d27

View File

@@ -53,10 +53,12 @@ struct FlatmmScalePointer
}
else if constexpr(granularity == 1)
{
ret.ptr = ptr + offset;
ret.length = length - offset;
}
else
{
ret.ptr = ptr + offset / granularity;
ret.length = length - offset / granularity;
}
return ret;