Skip to content

Commit 38c6200

Browse files
davidrohrcbmsw
authored andcommitted
Fix compiler warning, memmove must only operate on trivial types
1 parent e9fa9b7 commit 38c6200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GPU/TPCFastTransformation/TPCFastSpaceChargeCorrection.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ void TPCFastSpaceChargeCorrection::setActualBufferAddress(char* actualFlatBuffer
294294
// move spline scenarios to the new place in the buffer
295295

296296
mScenarioPtr = reinterpret_cast<SplineType*>(mFlatBufferPtr);
297-
memmove(mScenarioPtr, oldScenarioPtr, scenariosSize);
297+
memmove((void*)mScenarioPtr, (const void*)oldScenarioPtr, scenariosSize);
298298

299299
size_t oldScenariosBufferOffset = alignSize(oldScenariosOffset + scenariosSize, SplineType::getBufferAlignmentBytes());
300300
size_t scenariosBufferOffset = alignSize(scenariosSize, SplineType::getBufferAlignmentBytes());

0 commit comments

Comments
 (0)