From 8a019895c6365f3fc58373eff1b7786e6f5ff8dd Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 5 Jan 2026 17:50:08 +0800 Subject: [PATCH] Update module.cpp --- include/pybind11/tests/module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pybind11/tests/module.cpp b/include/pybind11/tests/module.cpp index c8f64bfa..d12cba0d 100644 --- a/include/pybind11/tests/module.cpp +++ b/include/pybind11/tests/module.cpp @@ -94,8 +94,8 @@ struct import_callback { _importfile = nullptr; }; - static char* importfile(const char* path) { - if(value.empty()) return _importfile(path, NULL); + static char* importfile(const char* path, int* data_size) { + if(value.empty()) return _importfile(path, data_size); // +1 for the null terminator char* cstr = new char[value.size() + 1];