Skip to content

Pervasives.max is broken on float type in v12 #7332

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

Closed
JonoPrest opened this issue Mar 12, 2025 · 0 comments · Fixed by #7333
Closed

Pervasives.max is broken on float type in v12 #7332

JonoPrest opened this issue Mar 12, 2025 · 0 comments · Fixed by #7333

Comments

@JonoPrest
Copy link
Contributor

Pervasives.max on a float type uses Primitive_bool.max in rescript 12

https://rescript-lang.org/try?version=v12.0.0-alpha.9&module=esmodule&code=DYUwLgBAhhC8EFYB0AGAUKSAjOEBsqaG4EAtrqVAB4AUUANBFgJRA

let a = 5.0
let b = 6.0

let m = max(a, b)
JavaScript
Output
Problems
Settings
// Generated by ReScript, PLEASE EDIT WITH CARE

import * as Primitive_bool from "./stdlib/Primitive_bool.js";

let m = Primitive_bool.max(5.0, 6.0);

let a = 5.0;

let b = 6.0;

export {
  a,
  b,
  m,
}
/* No side effect */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant