We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f703cca commit c6a3d08Copy full SHA for c6a3d08
rts/motoko-rts/src/buf.rs
@@ -46,7 +46,8 @@ pub(crate) unsafe fn read_word(buf: *mut Buf) -> u32 {
46
// IDL buffer is still 32-bit-based.
47
const WORD_SIZE: usize = core::mem::size_of::<u32>();
48
49
- if (*buf).ptr.add(WORD_SIZE - 1) >= (*buf).end { // TODO: use add(WORD_SIZE) and >
+ if (*buf).ptr.add(WORD_SIZE - 1) >= (*buf).end {
50
+ // TODO: use add(WORD_SIZE) and >
51
idl_trap_with("word read out of buffer");
52
}
53
0 commit comments