From e950b77475f35d49e9d9083fd77ff47a8df071f0 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Wed, 7 Feb 2024 14:27:11 +0100 Subject: [PATCH] fix move and move-wide constructor --- androscalpel/src/instructions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/androscalpel/src/instructions.rs b/androscalpel/src/instructions.rs index 69a0dfb..a64c401 100644 --- a/androscalpel/src/instructions.rs +++ b/androscalpel/src/instructions.rs @@ -3747,7 +3747,7 @@ impl Move { } #[new] - pub fn new(from: u16, to: u16) -> Self { + pub fn new(to: u16, from: u16) -> Self { Self { from, to } } @@ -3879,7 +3879,7 @@ impl MoveWide { } #[new] - pub fn new(from: u16, to: u16) -> Self { + pub fn new(to: u16, from: u16) -> Self { Self { from, to } }