From: Ralf Jung Date: Mon, 11 Apr 2022 21:54:41 +0000 (-0400) Subject: fix code snippet X-Git-Url: https://git.ralfj.de/web.git/commitdiff_plain/da273b949bd13952f321456db5cbd2f4c5fb3af4?ds=inline fix code snippet --- diff --git a/ralf/_posts/2022-04-11-provenance-exposed.md b/ralf/_posts/2022-04-11-provenance-exposed.md index 317cc30..56b7203 100644 --- a/ralf/_posts/2022-04-11-provenance-exposed.md +++ b/ralf/_posts/2022-04-11-provenance-exposed.md @@ -108,8 +108,8 @@ static int uwu(int *restrict x, int *restrict y) { } int main() { - int i = 0; - int res = uwu(&i, &i); + int i[2] = {0, 0}; + int res = uwu(&i[0], &i[1]); // Now this prints 0! printf("%d\n", res); }