ocaml / ocamlbuild

The legacy OCamlbuild build manager
Other
122 stars 81 forks source link

change divisor and dividend #293

Closed chakku000 closed 5 years ago

chakku000 commented 5 years ago

In the example of 05-lex-yacc, when the DIV is used, the divisor and dividend was not correct. The divisor is used as the dividend and the dividend is used as divisor. So, ./main.native 1/2 outputs 2, and ./main.native 2/1 outputs 0.

And, I change the divisor and dividend.

gasche commented 5 years ago

Indeed! Thanks, I have no idea where the mistake came from.