Browse Source

pastojs: fixed else modeswitch

mattias 10 tháng trước cách đây
mục cha
commit
1a3d651cfb
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      packages/pastojs/src/pas2jsfiler.pp

+ 3 - 0
packages/pastojs/src/pas2jsfiler.pp

@@ -1629,6 +1629,7 @@ end;
 
 function ModeSwitchToInt(ms: TModeSwitch): byte;
 begin
+  // these numbers are stored in files, so keep the values.
   case ms of
     msNone: Result:=0;
     msFpc: Result:=1;
@@ -1683,6 +1684,8 @@ begin
     msImplicitFunctionSpec: Result:=50;
     msMultiLineStrings: Result:=51;
     msDelphiMultiLineStrings: Result:=52;
+  else
+    Result:=0;
   end;
 end;