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/2ba08ac89085aa3a0dbc7377278fcc001db48095?ds=inline fix code snippet --- diff --git a/personal/_posts/2022-04-11-provenance-exposed.md b/personal/_posts/2022-04-11-provenance-exposed.md index 317cc30..56b7203 100644 --- a/personal/_posts/2022-04-11-provenance-exposed.md +++ b/personal/_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); }