Commit de84b65f authored by Claes Sjofors's avatar Claes Sjofors

Plc object DataSelect pointer offset fix (refs #103)

parent ab704303
......@@ -2820,11 +2820,10 @@ void DataSelect_exec(
i = *object->MaxIndexP + FLT_EPSILON;
i--;
DataP = (float **)((char *) &object->DataIn1P +
i * (sizeof(object->DataIn1) + sizeof(object->DataIn1P)));
DataP = (float **)((char *) &object->DataIn1P + i * pwr_cInputOffset);
memcpy( &object->OutDataP, *DataP,
sizeof( object->OutDataP) + sizeof( object->OutData_ObjId));
pwr_AlignLW(sizeof( object->OutDataP)) + sizeof( object->OutData_ObjId));
}
......
Markdown is supported
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