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

int.min behaves weirdly #1154

Closed
cbuttner opened this issue Feb 26, 2024 · 2 comments
Closed

int.min behaves weirdly #1154

cbuttner opened this issue Feb 26, 2024 · 2 comments
Assignees
Labels
Bug Something isn't working Fixed Needs Verification Fixed, but needs verification that it works
Milestone

Comments

@cbuttner
Copy link
Contributor

fn void int_min() {
  io::printn(int.min); // Prints -2147483648
  io::printn((float)int.min); // Prints positive 2147483648.0
  assert(int.min == -2147483648); // Assert violation
  assert((float)int.min == -2147483648.0f); // Assert violation
}
@lerno lerno added the Bug Something isn't working label Feb 26, 2024
@lerno lerno added this to the 0.5.5 milestone Feb 26, 2024
@lerno lerno self-assigned this Feb 26, 2024
lerno added a commit that referenced this issue Feb 26, 2024
@lerno
Copy link
Collaborator

lerno commented Feb 26, 2024

Fixed, thank you!

@lerno lerno added the Fixed Needs Verification Fixed, but needs verification that it works label Feb 26, 2024
lerno added a commit that referenced this issue Feb 26, 2024
@cbuttner
Copy link
Contributor Author

cbuttner commented Apr 9, 2024

Thanks.

@cbuttner cbuttner closed this as completed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Fixed Needs Verification Fixed, but needs verification that it works
Projects
None yet
Development

No branches or pull requests

2 participants