diff --git a/mlx/backend/common/compiled_cpu.cpp b/mlx/backend/common/compiled_cpu.cpp index cba6325c8..853617f5a 100644 --- a/mlx/backend/common/compiled_cpu.cpp +++ b/mlx/backend/common/compiled_cpu.cpp @@ -47,7 +47,7 @@ bool compile_available_for_device(const Device& device) { } // namespace detail std::string get_temp_file(const std::string& name) { - return std::filesystem::temp_directory_path().append(name); + return std::filesystem::temp_directory_path().append(name).string(); } // Return a pointer to a compiled function diff --git a/mlx/utils.cpp b/mlx/utils.cpp index 847432370..73ab4bf2e 100644 --- a/mlx/utils.cpp +++ b/mlx/utils.cpp @@ -152,7 +152,7 @@ std::ostream& operator<<(std::ostream& os, int8_t x) { } std::ostream& operator<<(std::ostream& os, uint8_t x) { - os << static_cast(x); + os << static_cast(x); return os; }