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: toUInt64LE! and toUInt64BE! are swapped #3660

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

digama0
Copy link
Collaborator

@digama0 digama0 commented Mar 12, 2024

fixes #3657

These functions are mostly not used by lean itself, but it does affect two occurrences of ByteArray.toUInt64LE! <$> IO.getRandomBytes 8 which I left as is instead of switching them to use toUInt64BE! to preserve behavior; but they are random bytes anyway seeded by the OS so it's unlikely any use of them depending on particular values was sound to begin with.

@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Mar 12, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Std CI can not be attempted yet, as the nightly-testing-2024-03-10 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Std CI should run now. (2024-03-12 18:53:54)

@Kha Kha requested a review from Vtec234 March 15, 2024 12:29
@kim-em kim-em added the will-merge-soon …unless someone speaks up label Mar 22, 2024
@kim-em
Copy link
Collaborator

kim-em commented Mar 22, 2024

@Vtec234, just checking if you wanted to look at this? I'm happy with this.

@kim-em
Copy link
Collaborator

kim-em commented Mar 28, 2024

CI had failed, but I think just transiently.

@kim-em kim-em enabled auto-merge March 28, 2024 00:52
@kim-em
Copy link
Collaborator

kim-em commented Mar 28, 2024

Nope, not transient. Let me merge master and see if that helps.

@kim-em kim-em added this pull request to the merge queue Mar 28, 2024
Merged via the queue into leanprover:master with commit 775dabd Mar 28, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN will-merge-soon …unless someone speaks up
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Are ByteArray.toInt64LE! and ByteArray.toInt64BE! reversed?
3 participants