TcOpen
TcOpen copied to clipboard
Implicit conversion warnings from TcOSequencerBase
There are several implicit conversion warnings as shown below. For example
// line 59
_message := CONCAT('ERROR NOT UNIQUE STEP_ID ',UINT_TO_STRING(inStepID));
where inStepID
is actually an INT
.
Solutions
- change
UINT_TO_STRING
toINT_TO_STRING
- change
UINT_TO_STRING
to more generalTO_STRING
All warnings:
Severity | Code | Description | Project |
---|---|---|---|
Warning | Implicit conversion from signed Type 'INT' to unsigned Type 'UINT' : possible change of sign [tcocore, 0.5.0.834 (vortex.library)] | TcoSequencerBase.IsStepIdUnique | 59 |
Warning | Implicit conversion from signed Type 'SINT' to unsigned Type 'UINT' : possible change of sign [tcocore, 0.5.0.834 (vortex.library)] | TcoSequencerBase.StepInternal | 34 |
Warning | Implicit conversion from unsigned Type 'UINT' to signed Type 'INT' : possible change of sign [tcocore, 0.5.0.834 (vortex.library)] | TcoSequencerBase.StepInternal | 140 |
Warning | Implicit conversion from unsigned Type 'UINT' to signed Type 'INT' : possible change of sign [tcocore, 0.5.0.834 (vortex.library)] | TcoSequencerBase.StepInternal | 140 |
Warning | Implicit conversion from signed Type 'INT' to unsigned Type 'UINT' : possible change of sign [tcocore, 0.5.0.834 (vortex.library)] | TcoSequencerBase.StepInternal | 150 |
Warning | Implicit conversion from signed Type 'INT' to unsigned Type 'UINT' : possible change of sign [tcocore, 0.5.0.834 (vortex.library)] | TcoSequencerBase.StepInternal | 152 |
Warning | Implicit conversion from unsigned Type 'UINT' to signed Type 'INT' : possible change of sign [tcocore, 0.5.0.834 (vortex.library)] | TcoSequencerBase.StepInternal | 158 |
Warning | Implicit conversion from unsigned Type 'UINT' to signed Type 'INT' : possible change of sign [tcocore, 0.5.0.834 (vortex.library)] | TcoSequencerBase.StepInternal | 158 |
Warning | Implicit conversion from signed Type 'INT' to unsigned Type 'UINT' : possible change of sign [tcocore, 0.5.0.834 (vortex.library)] | TcoSequencerBase.StepInternal | 159 |
Warning | Implicit conversion from signed Type 'INT' to unsigned Type 'UINT' : possible change of sign [tcocore, 0.5.0.834 (vortex.library)] | TcoSequencerBase.StepInternal | 161 |
good point @rruiter87, been on my list for some time will have a look
/create_issue_branch
/cib
Branch 404-Implicit_conversion_warnings_from_TcOSequencerBase created!