Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oxlime committed Nov 4, 2023
1 parent c48f1db commit 4d903c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vm/builtins/builtin_runner/range_check.zig
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ pub const RangeCheckBuiltinRunner = struct {
n_parts: u32,
included: bool,
) Self {
var bound = Felt252.one().overflowing_shl(16 * n_parts);
var _bound: ?Felt252 = if (n_parts != 0 and bound.zero()) null else Felt252.new(bound);
const bound = Felt252.one().overflowing_shl(16 * n_parts);
const _bound: ?Felt252 = if (n_parts != 0 and bound.zero()) null else Felt252.new(bound);

return .{
.ratio = ratio,
Expand Down Expand Up @@ -106,7 +106,7 @@ pub const RangeCheckBuiltinRunner = struct {
/// # Modifies
/// - `self`: Updates the `base` value to the new segment's index.
pub fn initialize_segments(self: *Self, segments: *MemorySegmentManager) void {
self.base = @as(usize, @intCast(segments.add().segment_index));
self.base = segments.add().segment_index;
}

/// Initializes and returns an `ArrayList` of `MaybeRelocatable` values.
Expand Down

0 comments on commit 4d903c5

Please sign in to comment.