Allow for queueing to the last mailbox

This commit is contained in:
Nick Krichevsky 2019-09-24 03:05:30 -04:00
parent 0403e2cd75
commit 9e0b0bfaf3

2
main.c
View file

@ -59,7 +59,7 @@ static int get_input(int num_threads, struct input **res) {
if (parse_result == -1) { if (parse_result == -1) {
// On bad input, we should assume an EOF and stop. // On bad input, we should assume an EOF and stop.
break; break;
} else if (current_input.recipient >= num_threads || current_input.recipient < 0) { } else if (current_input.recipient > num_threads || current_input.recipient < 0) {
printf("Invalid recipient id.\n"); printf("Invalid recipient id.\n");
continue; continue;
} }