optimization.ml fails to compile with a recent version of the ocaml compiler
Reported by Sylvestre LEDRU
BUG DESCRIPTION:
----------------
ocamlopt -I ./src/modelica_compiler -I ./src/xml2modelica -c src/modelica_compiler/optimization.ml
File "src/modelica_compiler/optimization.ml", line 166, characters 21-22:
166 | String.blit sm 2 s 0 (String.length sm - 2);
^
Error: This expression has type string but an expression was expected of type
bytes
make[5]: *** [Makefile:4174: src/modelica_compiler/optimization.cmx] Error 2
with ocaml version 4.08.1-3 (debian)