# HG changeset patch # User unc0rr # Date 1538768516 -7200 # Node ID 0ecf77e203c065a4c5321b73e6d46def1eee28dd # Parent d82c580b659673219200a4b1d0a8e47054aea3aa Fix pas2c build a bit more diff -r d82c580b6596 -r 0ecf77e203c0 hedgewars/uCommandHandlers.pas --- a/hedgewars/uCommandHandlers.pas Fri Oct 05 21:31:58 2018 +0200 +++ b/hedgewars/uCommandHandlers.pas Fri Oct 05 21:41:56 2018 +0200 @@ -445,7 +445,7 @@ t:= 1; tb:= t mod 255; // Delegate the actual change to /timer - ParseCommand('timer ' + Chr(tb + Ord('0')), true); + ParseCommand('timer ' + Char(tb + Ord('0')), true); end; end; diff -r d82c580b6596 -r 0ecf77e203c0 tools/pas2c/Pas2C.hs --- a/tools/pas2c/Pas2C.hs Fri Oct 05 21:31:58 2018 +0200 +++ b/tools/pas2c/Pas2C.hs Fri Oct 05 21:41:56 2018 +0200 @@ -612,7 +612,7 @@ varDeclDecision True True varStr expStr = varStr <+> expStr varDeclDecision False True varStr expStr = if externVar then varStr else varStr <+> expStr varDeclDecision False False varStr expStr = varStr <+> expStr - varDeclDecision True False _ _ = empty + varDeclDecision True False varStr expStr = varStr <+> expStr arrayDimension a = case a of ArrayDecl Nothing t' -> let a' = arrayDimension t' in if a' > 3 then error "Dynamic array with dimension > 4 is not supported." else 1 + a'