Skip to content

Commit

Permalink
[spv-out] Fix word order for constants
Browse files Browse the repository at this point in the history
  • Loading branch information
fintelia authored and JCapucho committed Nov 7, 2021
1 parent 28c4532 commit 098e4af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/back/spv/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ impl Writer {
&solo[..]
}
8 => {
pair = [(val >> 32) as u32, val as u32];
pair = [val as u32, (val >> 32) as u32];
&pair
}
_ => unreachable!(),
Expand All @@ -1023,7 +1023,7 @@ impl Writer {
&solo[..]
}
8 => {
pair = [(val >> 32) as u32, val as u32];
pair = [val as u32, (val >> 32) as u32];
&pair
}
_ => unreachable!(),
Expand All @@ -1038,7 +1038,7 @@ impl Writer {
}
8 => {
let bits = f64::to_bits(val);
pair = [(bits >> 32) as u32, bits as u32];
pair = [bits as u32, (bits >> 32) as u32];
&pair
}
_ => unreachable!(),
Expand Down

0 comments on commit 098e4af

Please sign in to comment.