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

fix: Replace shr with sar for integer types #35

Merged
merged 1 commit into from
May 1, 2024

Conversation

shuhuiluo
Copy link
Contributor

This commit replaces shr with sar in the assembly code of TickMath.sol, specifically in commands dealing with integer types. Additionally, it includes an update to the interaction with the variable tick256 - dropping the signextend function and just referencing tick. The changes also affect gas snapshots, though it is not the primary purpose of these modifications.

This commit replaces `shr` with `sar` in the assembly code of `TickMath.sol`, specifically in commands dealing with integer types. Additionally, it includes an update to the interaction with the variable `tick256` - dropping the `signextend` function and just referencing `tick`. The changes also affect gas snapshots, though it is not the primary purpose of these modifications.
@shuhuiluo
Copy link
Contributor Author

@gnarlycow Please merge the bug fix.

Copy link
Contributor

@gnarlycow gnarlycow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Shuhui!

@gnarlycow gnarlycow merged commit a23fa2b into Aperture-Finance:main May 1, 2024
1 of 2 checks passed
@shuhuiluo shuhuiluo deleted the fix-shr branch May 1, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants