From 94c9e50e1c90e204ccb75741fbbca2d44ed201b0 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Mon, 25 Nov 2024 10:10:04 -0800 Subject: [PATCH] Fix PyBind 2.10.4 compatibility issue in executorch/extension/pybindings/pybindings.cpp +1 Reviewed By: itamaro Differential Revision: D66395519 --- extension/pybindings/pybindings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/pybindings/pybindings.cpp b/extension/pybindings/pybindings.cpp index 3b3ba57093a..518e66d2841 100644 --- a/extension/pybindings/pybindings.cpp +++ b/extension/pybindings/pybindings.cpp @@ -795,7 +795,7 @@ struct PyModule final { py::isinstance(debug_buffer_path)) { // Also write out the debug buffer to a separate file if requested. std::string debug_buffer_path_str = - py::cast(debug_buffer_path); + py::cast(debug_buffer_path); const auto debug_buffer = module_->get_etdump_debug_buffer(); write_data_to_file( debug_buffer_path_str, debug_buffer.data(), debug_buffer.size());