Skip to content

Commit

Permalink
Fix corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
gianbelinche committed Jun 18, 2024
1 parent aea47f0 commit c7c2490
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/op_handlers/ptr_add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ 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 {
if overflow { // TODO: Use correct error handling
panic!("Offset overflow in ptr_add");
}
let new_pointer = FatPointer {
Expand Down
3 changes: 0 additions & 3 deletions src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ impl Default for TaggedValue {
}

impl TaggedValue {
pub fn new(value: U256, is_pointer: bool) -> Self {
Self { value, is_pointer }
}
pub fn new_raw_integer(value: U256) -> Self {
Self {
value,
Expand Down

0 comments on commit c7c2490

Please sign in to comment.