drh / lcc

The lcc retargetable ANSI C compiler

Home Page:https://drh.github.io/lcc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mulops_calls option recognition

evil-mad-engineer opened this issue · comments

main.c has an incorrect length for the mulops_calls option string on lines 158 and 159.
else if (strncmp(argv[i], "-mulops_calls=", 18) == 0) IR->mulops_calls = argv[i][18] - '0';
should be:
else if (strncmp(argv[i], "-mulops_calls=", 14) == 0) IR->mulops_calls = argv[i][14] - '0';
if I'm counting correctly.