Skip to content

Commit

Permalink
Correct address order
Browse files Browse the repository at this point in the history
  • Loading branch information
mbStavola committed Sep 17, 2017
1 parent 0938eaf commit 84ac198
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/opcode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ fn build_data(nibbles: [u8; 4]) -> (Data, Data) {

fn build_address(nibbles: [u8; 4]) -> Address {
let first = nibbles[1] as u16;
let third = nibbles[2] as u16;
let second = nibbles[3] as u16;
let second = nibbles[2] as u16;
let third = nibbles[3] as u16;

(first << 8) + (second << 4) + third
}
Expand Down

0 comments on commit 84ac198

Please sign in to comment.