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 operators to compare numerically, not lexicographically #491

Merged
merged 1 commit into from
Sep 30, 2023

Conversation

Narrat
Copy link
Collaborator

@Narrat Narrat commented Sep 30, 2023

The operator < compares two strings lexicographically resulting in that a 100MB tomb is considered smaller than 47MB or 18MB.

Closes #489


Took the liberty and created the PR which incorporates the fix for #489

The operator < compares two strings lexicographically resulting in that a 100MB tomb is considered smaller than 47MB or 18MB.

Closes dyne#489
@jaromil
Copy link
Member

jaromil commented Sep 30, 2023

Many thanks for this and the other PR, please take all the liberties 😅

@jaromil jaromil merged commit dcdf4cb into dyne:master Sep 30, 2023
2 checks passed
@Narrat Narrat deleted the comparison branch September 30, 2023 23:23
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.

File tomb, function lock_tomb_with_key(): Wrong comparison operator used to check a tomb's size
2 participants