Skip to content

Commit

Permalink
chore: fix variable name collision with field
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Nov 30, 2023
1 parent 71abc61 commit 5fb072e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use dep::std;

unconstrained fn main() {
let field = 1000;
let be_bits = field.to_be_bits(16);
let le_bits = field.to_le_bits(16);
let val = 1000;
let be_bits = val.to_be_bits(16);
let le_bits = val.to_le_bits(16);

for i in 0..16 {
let x = be_bits[i];
Expand Down
6 changes: 3 additions & 3 deletions test_programs/compile_success_empty/to_bits/src/main.nr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
fn main() {
let field = 1000;
let be_bits = field.to_be_bits(16);
let le_bits = field.to_le_bits(16);
let val = 1000;
let be_bits = val.to_be_bits(16);
let le_bits = val.to_le_bits(16);

for i in 0..16 {
let x = be_bits[i];
Expand Down

0 comments on commit 5fb072e

Please sign in to comment.