Skip to content

Commit c6a3d08

Browse files
committed
format
1 parent f703cca commit c6a3d08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rts/motoko-rts/src/buf.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ pub(crate) unsafe fn read_word(buf: *mut Buf) -> u32 {
4646
// IDL buffer is still 32-bit-based.
4747
const WORD_SIZE: usize = core::mem::size_of::<u32>();
4848

49-
if (*buf).ptr.add(WORD_SIZE - 1) >= (*buf).end { // TODO: use add(WORD_SIZE) and >
49+
if (*buf).ptr.add(WORD_SIZE - 1) >= (*buf).end {
50+
// TODO: use add(WORD_SIZE) and >
5051
idl_trap_with("word read out of buffer");
5152
}
5253

0 commit comments

Comments
 (0)