Skip to content
Snippets Groups Projects
Commit 09a93c29 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

fix: compilation fails with new DOOCS

parent 53236f2d
No related branches found
No related tags found
No related merge requests found
......@@ -113,11 +113,6 @@ namespace ChimeraTK {
// No cast necessary if types are identical.
dataPtr = processVector.data();
}
else if constexpr(std::is_same<DOOCS_PRIMITIVE_T, int64_t>::value &&
std::is_same<THE_DOOCS_TYPE, long long int>::value) {
// Cast from int64_t to long long int (which are different types!)
dataPtr = reinterpret_cast<long long int*>(processVector.data());
}
else if constexpr(std::is_same<DOOCS_PRIMITIVE_T, ChimeraTK::Boolean>::value &&
std::is_same<THE_DOOCS_TYPE, bool>::value) {
// FIXME: Is it really ok to use reinterpret_cast here?
......
......@@ -105,10 +105,10 @@ namespace ChimeraTK {
saveArray<unsigned int>(p);
break;
case DATA_A_LONG:
saveArray<long long>(p);
saveArray<int64_t>(p);
break;
case DATA_A_ULONG:
saveArray<unsigned long long>(p);
saveArray<uint64_t>(p);
break;
case DATA_A_FLOAT:
saveArray<float>(p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment