Browse Source

* ensure that flushpendingswitchesstate had been called before the start of replaying tokens

Sven/Sarah Barth 7 months ago
parent
commit
d335ce60dd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      compiler/scanner.pas

+ 4 - 0
compiler/scanner.pas

@@ -3721,6 +3721,10 @@ type
         { install buffer }
         { install buffer }
         replaytokenbuf:=buf;
         replaytokenbuf:=buf;
 
 
+        { flushpendingswitchesstate should have been called }
+        if assigned(pendingstate.nextmessagerecord) then
+          internalerror(2024122901);
+
         { Initialize value of change_endian_for_replay variable }
         { Initialize value of change_endian_for_replay variable }
         change_endian_for_replay:=change_endian;
         change_endian_for_replay:=change_endian;