bug in input checking: do not accept In

This commit is contained in:
Florian Stecker 2018-03-28 10:41:11 +02:00
parent 1f21d6bb13
commit a12f845f05

View File

@ -228,7 +228,7 @@ int main(int argc, const char *argv[])
for(int i = 0; i < type.n; i++) { for(int i = 0; i < type.n; i++) {
type.factors[i].series = argv[i+1][0]; type.factors[i].series = argv[i+1][0];
type.factors[i].rank = argv[i+1][1] - '0'; type.factors[i].rank = argv[i+1][1] - '0';
ERROR(argv[i+1][0] < 'A' || argv[i+1][0] > 'I' || argv[i+1][1] < '1' || argv[i+1][1] > '9', "Arguments must be Xn with X out of A-G and n out of 1-9\n"); ERROR(argv[i+1][0] < 'A' || argv[i+1][0] > 'G' || argv[i+1][1] < '1' || argv[i+1][1] > '9', "Arguments must be Xn with X out of A-G and n out of 1-9\n");
} }
left_invariance = right_invariance = 0; left_invariance = right_invariance = 0;