Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitwise 'Name' method in docs returns correct name #319

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2875,7 +2875,7 @@ func (b *BitwiseBuiltinRunner) Base() memory.Relocatable {
}

func (b *BitwiseBuiltinRunner) Name() string {
return "range_check"
return "bitwise"
}
```

Expand Down Expand Up @@ -2913,7 +2913,7 @@ const BIWISE_INPUT_CELLS_PER_INSTANCE = 2

func (b *BitwiseBuiltinRunner) DeduceMemoryCell(address memory.Relocatable, mem *memory.Memory) (*memory.MaybeRelocatable, error) {
index := address.Offset % BITWISE_CELLS_PER_INSTANCE
if index < BIWISE_INPUT_CELLS_PER_INSTANCE {
if index < BITWISE_INPUT_CELLS_PER_INSTANCE {
return nil, nil
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/builtins/bitwise.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

func (b *BitwiseBuiltinRunner) DeduceMemoryCell(address memory.Relocatable, mem *memory.Memory) (*memory.MaybeRelocatable, error) {
index := address.Offset % BITWISE_CELLS_PER_INSTANCE
if index < BIWISE_INPUT_CELLS_PER_INSTANCE {
if index < BITWISE_INPUT_CELLS_PER_INSTANCE {

Check failure on line 63 in pkg/builtins/bitwise.go

View workflow job for this annotation

GitHub Actions / demos

undefined: BITWISE_INPUT_CELLS_PER_INSTANCE

Check failure on line 63 in pkg/builtins/bitwise.go

View workflow job for this annotation

GitHub Actions / test_and_format

undefined: BITWISE_INPUT_CELLS_PER_INSTANCE
entropidelic marked this conversation as resolved.
Show resolved Hide resolved
return nil, nil
}

Expand Down
Loading