File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,47 +2,46 @@ name: Lint and test
22
33on :
44 push :
5- branches : [ main ]
6- pull_request :
5+ branches : [main]
6+ pull_request :
77 workflow_dispatch :
88
99jobs :
10-
1110 build :
1211 runs-on : ubuntu-latest
1312 steps :
14- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v2
1514
16- - name : Set up Zig
17- uses : korandoru/setup-zig@v1
18- with :
19- zig-version : 0.11 .0
15+ - name : Set up Zig
16+ uses : korandoru/setup-zig@v1
17+ with :
18+ zig-version : 0.12 .0
2019
21- - name : Build
22- run : zig build
20+ - name : Build
21+ run : zig build
2322
2423 lint :
2524 runs-on : ubuntu-latest
2625 steps :
27- - uses : actions/checkout@v2
26+ - uses : actions/checkout@v2
2827
29- - name : Set up Zig
30- uses : korandoru/setup-zig@v1
31- with :
32- zig-version : 0.11 .0
28+ - name : Set up Zig
29+ uses : korandoru/setup-zig@v1
30+ with :
31+ zig-version : 0.12 .0
3332
34- - name : Lint
35- run : zig fmt --check src/*.zig
33+ - name : Lint
34+ run : zig fmt --check src/*.zig
3635
3736 test :
3837 runs-on : ubuntu-latest
3938 steps :
40- - uses : actions/checkout@v2
39+ - uses : actions/checkout@v2
4140
42- - name : Set up Zig
43- uses : korandoru/setup-zig@v1
44- with :
45- zig-version : 0.11 .0
41+ - name : Set up Zig
42+ uses : korandoru/setup-zig@v1
43+ with :
44+ zig-version : 0.12 .0
4645
47- - name : Test
48- run : zig build test
46+ - name : Test
47+ run : zig build test
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ pub fn main() !void {
1818
1919 var frs : [w ]Fr.NonMontgomeryDomainFieldElement = undefined ;
2020 for (0.. w , 0.. ) | v , i | {
21- std .mem .writeIntLittle (u256 , & buf , v );
21+ std .mem .writeInt (u256 , & buf , v , .little );
2222 var nonMont : Fr.NonMontgomeryDomainFieldElement = undefined ;
2323 Fr .fromBytes (& nonMont , buf );
2424 Fr .toMontgomery (& frs [i ], nonMont );
You can’t perform that action at this time.
0 commit comments