We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sizeof(long double) == sizeof(double)
std::is_same<>
1 parent 8abe0e9 commit b09e75bCopy full SHA for b09e75b
tests/test_buffers.cpp
@@ -14,7 +14,7 @@
14
#include "pybind11_tests.h"
15
16
TEST_SUBMODULE(buffers, m) {
17
- m.attr("std_is_same_double_long_double") = std::is_same<double, long double>::value;
+ m.attr("long_double_and_double_have_same_size") = (sizeof(long double) == sizeof(double));
18
19
m.def("format_descriptor_format_buffer_info_compare",
20
[](const std::string &cpp_name, const py::buffer &buffer) {
tests/test_buffers.py
@@ -10,7 +10,7 @@
10
11
np = pytest.importorskip("numpy")
12
13
-if m.std_is_same_double_long_double: # Windows.
+if m.long_double_and_double_have_same_size: # Windows.
np_float128 = None
np_complex256 = None
else:
0 commit comments