Skip to content

Commit 7146494

Browse files
committed
Fix do while condition and body being flipped in Rust HLIL bindings
1 parent 08a1e68 commit 7146494

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/src/hlil/instruction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,8 @@ impl HighLevelILInstruction {
611611
body: op.operands[1] as usize,
612612
}),
613613
HLIL_DO_WHILE => Op::DoWhile(While {
614-
condition: op.operands[0] as usize,
615-
body: op.operands[1] as usize,
614+
body: op.operands[0] as usize,
615+
condition: op.operands[1] as usize,
616616
}),
617617
HLIL_WHILE_SSA => Op::WhileSsa(WhileSsa {
618618
condition_phi: op.operands[0] as usize,

0 commit comments

Comments
 (0)