Skip to content

Commit 09305cc

Browse files
committed
Correctly allocate last frame in memory descriptor
`end_frame` is inclusive. Signed-off-by: Klim Tsoutsman <[email protected]>
1 parent fffa7ce commit 09305cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/src/legacy_memory_region.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ where
6868
self.next_frame = start_frame;
6969
}
7070

71-
if self.next_frame < end_frame {
71+
if self.next_frame <= end_frame {
7272
let ret = self.next_frame;
7373
self.next_frame += 1;
7474
Some(ret)

0 commit comments

Comments
 (0)