Skip to content

Conversation

reallesee
Copy link

Introduces a new constant INT256_MIN_ABS in the stdMath library to store the absolute value of INT256_MIN. The abs() function now uses this constant instead of duplicating the magic number. This change improves code readability, maintainability, and follows the DRY principle. It also prevents potential overflow issues that could occur when trying to calculate -INT256_MIN directly.

@DaniPopes
Copy link
Member

Thanks but this is unnecessary because it's used only once

@DaniPopes DaniPopes closed this Jul 31, 2025
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