Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
gianbelinche committed Jun 18, 2024
1 parent c7c2490 commit d270717
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/op_handlers/ptr_add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ use crate::{
pub fn _ptr_add(vm: &mut VMState, opcode: &Opcode) {
let (pointer, diff, src0) = ptr_operands_read(vm, opcode, "ptr_add");
let (new_offset, overflow) = pointer.offset.overflowing_add(diff);
if overflow { // TODO: Use correct error handling
if overflow {
// TODO: Use correct error handling
panic!("Offset overflow in ptr_add");
}
let new_pointer = FatPointer {
Expand Down

0 comments on commit d270717

Please sign in to comment.