Commit b447aff9 authored by Benjamin Franksen's avatar Benjamin Franksen
Browse files

replace static_cast with dynamic_cast for asynMotorAxis -> phytronAxis

parent 6067e488
......@@ -441,7 +441,7 @@ void phytronController::report(FILE *fp, int level)
*/
phytronAxis* phytronController::getAxis(asynUser *pasynUser)
{
return static_cast<phytronAxis*>(asynMotorController::getAxis(pasynUser));
return dynamic_cast<phytronAxis*>(asynMotorController::getAxis(pasynUser));
}
/** Returns a pointer to an phytronAxis object.
......@@ -450,7 +450,7 @@ phytronAxis* phytronController::getAxis(asynUser *pasynUser)
*/
phytronAxis* phytronController::getAxis(int axisNo)
{
return static_cast<phytronAxis*>(asynMotorController::getAxis(axisNo));
return dynamic_cast<phytronAxis*>(asynMotorController::getAxis(axisNo));
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment