mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-05 22:12:24 +00:00
Correct set size in component pascal compatability mode
This commit is contained in:
parent
2ddbf5d517
commit
7f4b284aef
2 changed files with 6 additions and 6 deletions
2
src/compiler/Compiler.Mod
Normal file → Executable file
2
src/compiler/Compiler.Mod
Normal file → Executable file
|
|
@ -66,7 +66,7 @@ MODULE Compiler; (* J. Templ 3.2.95 *)
|
|||
OPT.intobj.typ := OPT.inttyp;
|
||||
OPT.lintobj.typ := OPT.linttyp;
|
||||
|
||||
CASE OPM.LongintSize OF
|
||||
CASE OPM.SetSize OF
|
||||
|4: OPT.settyp := OPT.set32typ
|
||||
ELSE OPT.settyp := OPT.set64typ
|
||||
END;
|
||||
|
|
|
|||
10
src/compiler/OPM.Mod
Normal file → Executable file
10
src/compiler/OPM.Mod
Normal file → Executable file
|
|
@ -92,7 +92,7 @@ MODULE OPM; (* RC 6.3.89 / 28.6.89, J.Templ 10.7.89 / 22.7.96 *)
|
|||
GlobalAlignment, Alignment*: INTEGER;
|
||||
GlobalOptions*, Options*: SET;
|
||||
|
||||
ShortintSize*, IntegerSize*, LongintSize*: INTEGER;
|
||||
ShortintSize*, IntegerSize*, LongintSize*, SetSize*: INTEGER;
|
||||
|
||||
MaxIndex*: SYSTEM.INT64;
|
||||
|
||||
|
|
@ -328,10 +328,10 @@ MODULE OPM; (* RC 6.3.89 / 28.6.89, J.Templ 10.7.89 / 22.7.96 *)
|
|||
|
||||
MaxIndex := SignedMaximum(AddressSize);
|
||||
CASE Model[0] OF
|
||||
|'2': ShortintSize := 1; IntegerSize := 2; LongintSize := 4
|
||||
|'C': ShortintSize := 2; IntegerSize := 4; LongintSize := 8
|
||||
|'V': ShortintSize := 1; IntegerSize := 4; LongintSize := 8
|
||||
ELSE ShortintSize := 1; IntegerSize := 2; LongintSize := 4
|
||||
|'2': ShortintSize := 1; IntegerSize := 2; LongintSize := 4; SetSize := 4;
|
||||
|'C': ShortintSize := 2; IntegerSize := 4; LongintSize := 8; SetSize := 4;
|
||||
|'V': ShortintSize := 1; IntegerSize := 4; LongintSize := 8; SetSize := 8;
|
||||
ELSE ShortintSize := 1; IntegerSize := 2; LongintSize := 4; SetSize := 4;
|
||||
END;
|
||||
|
||||
(*IF verbose IN Options THEN VerboseListSizes END;*)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue