return types::Function::Error;
}
memcpy(opar[j], oparDouble->get(), oparDouble->getSize() * sizeof(double)); // Real part
- memcpy((double*)(opar[j]) + sizeof(double)*oparDouble->getSize(), oparDouble->getImg(), oparDouble->getSize() * sizeof(double)); // Complex part
+ memcpy((double*)(opar[j]) + oparDouble->getSize(), oparDouble->getImg(), oparDouble->getSize() * sizeof(double)); // Complex part
// FIXME: delete oparDouble because we copied it instead of using it?
}
oparsz[j] = oparDouble->getRows();
return types::Function::Error;
}
memcpy(outtbptr[j], outtbDouble->get(), outtbDouble->getSize() * sizeof(double)); // Real part
- memcpy((double*)(outtbptr[j]) + sizeof(double)*outtbDouble->getSize(), outtbDouble->getImg(), outtbDouble->getSize() * sizeof(double)); // Complex part
+ memcpy((double*)(outtbptr[j]) + outtbDouble->getSize(), outtbDouble->getImg(), outtbDouble->getSize() * sizeof(double)); // Complex part
// FIXME: delete outtbDouble because we copied it instead of using it?
}
outtbsz[j] = outtbDouble->getRows();
case 26 :
error = _("The number of parameter provided by Scicos blocks is different from what expected by the code generated by the Modelica compiler. You might have relaxed a parameter using FIXED property (i.e., fixed=false) in a Modelica model. This will be corrected in the next version");
break;
- // In this case, you need to turn off the parameter embedded code generation mode by setting 'Modelica_ParEmb=%f' in the Scilab command window, and recompile the Scicos diagram
+ // In this case, you need to turn off the parameter embedded code generation mode by setting 'Modelica_ParEmb=%f' in the Scilab command window, and recompile the Scicos diagram
default :
if (ierr >= 1000)