From 35535a3815bb46d6c1b6adc7436e19e1b8d33c1d Mon Sep 17 00:00:00 2001 From: Jonah Maxwell Miller Date: Fri, 19 Apr 2024 16:14:25 -0600 Subject: [PATCH] static casts. Static casts for everybody. --- python/module.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/module.hpp b/python/module.hpp index 603d70a68b..23f50b958b 100644 --- a/python/module.hpp +++ b/python/module.hpp @@ -326,7 +326,7 @@ py::class_ eos_class(py::module_ & m, std::string name) { auto lambda = kwargs["lmbda"].cast>(); self.FillEos(s.density, s.temperature, s.specific_internal_energy, s.pressure, s.specific_heat, s.bulk_modulus, output, lambda.mutable_data()); } else { - self.FillEos(s.density, s.temperature, s.specific_internal_energy, s.pressure, s.specific_heat, s.bulk_modulus, output, nullptr); + self.FillEos(s.density, s.temperature, s.specific_internal_energy, s.pressure, s.specific_heat, s.bulk_modulus, output, static_cast(nullptr)); } return s; }) @@ -337,7 +337,7 @@ py::class_ eos_class(py::module_ & m, std::string name) { }) .def("ValuesAtReferenceState", [](const T & self){ EOSState s; - self.ValuesAtReferenceState(s.density, s.temperature, s.specific_internal_energy, s.pressure, s.specific_heat, s.bulk_modulus, s.dpde, s.dvdt, nullptr); + self.ValuesAtReferenceState(s.density, s.temperature, s.specific_internal_energy, s.pressure, s.specific_heat, s.bulk_modulus, s.dpde, s.dvdt, static_cast(nullptr)); return s; }) @@ -354,7 +354,7 @@ py::class_ eos_class(py::module_ & m, std::string name) { }, py::arg("press"), py::arg("temp"), py::arg("lmbda")) .def("DensityEnergyFromPressureTemperature", [](const T & self, const Real press, const Real temp) { Real rho, sie; - self.DensityEnergyFromPressureTemperature(press, temp, nullptr, rho, sie); + self.DensityEnergyFromPressureTemperature(press, temp, static_cast(nullptr), rho, sie); return std::pair(rho, sie); }, py::arg("press"), py::arg("temp")) .def("Finalize", &T::Finalize)