From 822992bb7fc2e3639de7ce45c8d7f98c85a3fb1f Mon Sep 17 00:00:00 2001 From: Naoto Kondo Date: Sun, 26 Apr 2020 03:48:39 +0900 Subject: [PATCH] fix windows build --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 93fd2e6..cc49b6a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -225,7 +225,7 @@ PYBIND11_MODULE(NDIlib, m) { static std::unordered_map strs; strs[&self] = py::str(data); - self.p_data = strs[&self].data(); + self.p_data = &strs[&self][0]; }); py::class_(m, "Tally")