Skip to content

Commit

Permalink
remove mask const (keep-starknet-strange#110)
Browse files Browse the repository at this point in the history
* remove mask const

* fix ci condition

* remove extra try, change defer to errdefer

---------

Co-authored-by: d-roak <[email protected]>
  • Loading branch information
lana-shanghai and d-roak authored Nov 7, 2023
1 parent d2a2037 commit 033ddd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: zig test -femit-docs=./docsite src/lib.zig

- name: Deploy
if: ${{github.event_name == 'push'}} && ${{ github.ref == 'refs/heads/main' }} && steps.check_changes.outcome == 'success'
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.check_changes.outcome == 'success' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion src/vm/builtins/builtin_runner/range_check.zig
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const RunnerError = Error.RunnerError;

const N_PARTS: u64 = 8;
const INNER_RC_BOUND_SHIFT: u64 = 16;
const INNER_RC_BOUND_MASK: u64 = @as(u64, @intCast(u16.MAX));

/// Range check built-in runner
pub const RangeCheckBuiltinRunner = struct {
Expand Down Expand Up @@ -248,6 +247,7 @@ pub const RangeCheckBuiltinRunner = struct {
/// verification fails.
pub fn rangeCheckValidationRule(memory: *Memory, address: Relocatable, allocator: Allocator) !std.ArrayList(Relocatable) {
var result = ArrayList(Relocatable).init(allocator);
errdefer result.deinit();
const num = (memory.get(address) catch {
return null;
}).tryIntoFelt() catch {
Expand Down

0 comments on commit 033ddd7

Please sign in to comment.