Commit 811ab42e authored by Claes Sjofors's avatar Claes Sjofors

Plc editor, DataRef bugfix for compile method 4

parent f6cde318
......@@ -7018,6 +7018,8 @@ int gcg_comp_m4( gcg_ctx gcgctx, vldh_t_node node)
if ( par_inverted )
gcg_error_msg( gcgctx, GSX__INV, node);
if ( output_bodydef.Par->Output.Info.Type == pwr_eType_DataRef)
strcpy( cast, "(pwr_tVoid *)");
IF_PR fprintf( gcgctx->files[GCGM1_REF_FILE],
"%c%s->%sP = %s&%c%s->%s;\n",
GCG_PREFIX_REF,
......
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