From 2075cfc9b395b413de1a540f6262e7b994907bee Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 4 Jun 2023 10:26:48 +0200 Subject: fix associativity of assignment expressions --- test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test.c') diff --git a/test.c b/test.c index b89942a..a2a1a7c 100644 --- a/test.c +++ b/test.c @@ -56,9 +56,10 @@ struct f2 f2test(struct f2 *r) { return *r; } -void memset(volatile char *p, int c, unsigned long n) +void fill(char *p, int c, unsigned long n) { - if (n) do *p++ = c; while (--n); + int t; + if (n) do t = *p++ = c; while (--n); } -- cgit v1.2.3