Quellcode durchsuchen

Update module.cpp

blueloveTH vor 1 Monat
Ursprung
Commit
8a019895c6
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      include/pybind11/tests/module.cpp

+ 2 - 2
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];