Skip to content

Commit a3237f2

Browse files
committed
tmp: CI debugging
1 parent 0295eb2 commit a3237f2

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

include/openPMD/Datatype.tpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ constexpr inline bool isSameChar(Datatype d, Datatype e)
292292

293293
constexpr bool isSame(openPMD::Datatype const d, openPMD::Datatype const e)
294294
{
295-
return
295+
auto res =
296296
// exact same type
297297
static_cast<int>(d) == static_cast<int>(e)
298298
// same int
@@ -303,6 +303,14 @@ constexpr bool isSame(openPMD::Datatype const d, openPMD::Datatype const e)
303303
|| isSameComplexFloatingPoint(d, e)
304304
// same char
305305
|| isSameChar(d, e);
306+
if (!res)
307+
{
308+
std::cerr << "Comparing Datatype " << d << " to " << e << " failed:\n";
309+
std::cerr << "\t(signed: " << isSigned(d) << ", size: " << toBits(d)
310+
<< ") -- (signed: " << isSigned(e) << ", size: " << toBits(e)
311+
<< ")" << std::endl;
312+
}
313+
return res;
306314
}
307315
} // namespace openPMD
308316

0 commit comments

Comments
 (0)