openxla / xla

A machine learning compiler for GPUs, CPUs, and ML accelerators
Apache License 2.0
2.55k stars 394 forks source link

Fix call to std::max with conflicting types. #14903

Closed copybara-service[bot] closed 1 month ago

copybara-service[bot] commented 1 month ago

Fix call to std::max with conflicting types.

Currently this results in a compile error on MacOS:

error: no matching function for call to 'max' intervals.push_back({std::max(0l, a - 1), std::max(0l, b - 1)})