drh / lcc

The lcc retargetable ANSI C compiler
https://drh.github.io/lcc/
2.03k stars 441 forks source link

mulops_calls option recognition #31

Open evil-mad-engineer opened 8 years ago

evil-mad-engineer commented 8 years ago

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.