View Issue Details

IDProjectCategoryView StatusLast Update
0000163GC StudioCompilerpublic2022-05-03 17:20
Reporterevanvennn Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version99.02.21 
Target Version99.02.22Fixed in Version99.02.22 
Summary0000163: Conditional expression involving words or longs assigned wrong type by compiler
DescriptionConditional expression involving words or longs assigned wrong type by compiler[1352]
Includes change to messages.dat as message source.
Steps To Reproducematch = times_array(1) + 2 >= times_array(3) error
where the times_array(1) + 2 is treated a SYSTEMP byte variable when the array is a word element array .. thus messes up the ASM and the users code.
the cause of the issue is that the TypeAV = TypeOfValue(AV, Subroutine(GetDestSub(Origin))) above returns a byte not a word
so, this code tests that TypeAV is not empty, when empty then the compiler has not determine a type, so, it is not of interest
then, it test for > or M then this is a calculation that could impact the type cast.
If all these tests are valid, then simply choose the largest of the two variables.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-04-28 15:54 evanvennn New Issue
2022-04-28 15:57 evanvennn Status new => resolved
2022-04-28 15:57 evanvennn Resolution open => fixed
2022-05-01 18:19 angel-spartan Product Version => 99.02.21
2022-05-01 18:19 angel-spartan Fixed in Version => 99.02.22
2022-05-01 18:19 angel-spartan Target Version => 99.02.22
2022-05-03 17:20 angel-spartan Status resolved => closed