From 1be8a18ccb196476c3d8bb690ea7c298ef1e5a6b Mon Sep 17 00:00:00 2001 From: Lucia Ceionia Date: Fri, 5 Dec 2025 01:30:30 -0600 Subject: [PATCH] fix for blinken --- day4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/day4.c b/day4.c index 10b8fa8..e3ab9cc 100644 --- a/day4.c +++ b/day4.c @@ -148,8 +148,8 @@ line_start: + (*(d - 0 + line_stride) == '@') + (*(d + 1 + line_stride) == '@'); if (neighbors < 4) { - *d = '.'; - result++; + (*((volatile unsigned long *)&result))++; + *(volatile unsigned char *)d = '.'; if (i > line_count-1) { i = line_count; l = buf + line_stride + 1;