Skip to content

Commit 4906850

Browse files
authored
Add files via upload
1 parent 87557a1 commit 4906850

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
15.08.2022
2+
- poprawiona procedura ExpandExpression, uwzglednia VARTYPE = BOOLEANTOK, np.: 'boolean := (shortint + shorint > 0)
3+
14
12.08.2022
25
- poprawione reset POKEY-a (src\targets\generate_program_prolog.inc)
36

src/mp.pas

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35955,6 +35955,9 @@ procedure ExpandExpression(var ValType: Byte; RightValType, VarType: Byte);
3595535955
if VarType <> 0 then
3595635956
if DataSize[VarType] > m then m:=DataSize[VarType]; // okreslamy najwiekszy wspolny typ
3595735957

35958+
if VarType = BOOLEANTOK then inc(m); // dla sytuacji np.: boolean := (shortint + shorint > 0)
35959+
35960+
3595835961
if (ValType in SignedOrdinalTypes) or (RightValType in SignedOrdinalTypes) then
3595935962
sign:=true
3596035963
else

0 commit comments

Comments
 (0)