fixed comment

This commit is contained in:
Remzi Arpaci-Dusseau
2021-08-15 11:08:07 -07:00
parent 9be6d209fa
commit ec258eef6a

View File

@@ -65,7 +65,7 @@ int main(int argc, char *argv[]) {
if (strcmp(argv[i], "pop") == 0) {
if (p->n > 0) // stack not empty
printf("%d\n", p->stack[--p->n]);
} else { // pop
} else {
if (sizeof(pstack_t) + (1 + p->n) * sizeof(int) <= file_size) // stack not full
p->stack[p->n++] = atoi(argv[i]);
}