Skip to content

fix(math): correct min function logic to match C API#39

Open
kejuuu wants to merge 1 commit intoarcticfox1919:mainfrom
kejuuu:fix/math-min-logic
Open

fix(math): correct min function logic to match C API#39
kejuuu wants to merge 1 commit intoarcticfox1919:mainfrom
kejuuu:fix/math-min-logic

Conversation

@kejuuu
Copy link

@kejuuu kejuuu commented Oct 21, 2025

The math.min function was returning the maximum value of its arguments instead of the minimum, due to incorrect comparison logic. math.min(5, 6) would incorrectly return 6.

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.

1 participant