P.5 example read int array size mismatch (#1161)

Expand comment to clarify problem.
pull/1162/head
nnaka 8 years ago committed by Jonathan Wakely
parent b487f9790a
commit 9c4d4247b1

@ -697,7 +697,7 @@ Or better still just use the type system and replace `Int` with `int32_t`.
void read(int* p, int n); // read max n integers into *p
int a[100];
read(a, 1000); // bad
read(a, 1000); // bad, off the end
better

Loading…
Cancel
Save