don't use zero-size array to make pedantic gcc happy

master
neingeist 11 years ago
parent fb429605f3
commit 9308677458

@ -72,9 +72,4 @@ int main(void) {
assert(binsearch(c, 1, 0) == 0); assert(binsearch(c, 1, 0) == 0);
assert(binsearch(c, 1, 1) == -1); assert(binsearch(c, 1, 1) == -1);
int d[0];
assert_sorted(d, 1);
assert(binsearch(d, 0, 0) == -1);
} }

Loading…
Cancel
Save