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/412c80289085c61b2de003a5b56f890a1564f98d 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); }