diff options
| author | 2025-09-12 17:10:35 +0200 | |
|---|---|---|
| committer | 2025-09-12 17:10:35 +0200 | |
| commit | 89710916cfa82f50be0092347744a5e06a3b5420 (patch) | |
| tree | 02cff596fad2f6b4ea577ad35bc77d53dcb4a413 /test/test3.c | |
| parent | c8af181799015ea39b8868ef5d07b10ed255e799 (diff) | |
c: function-local static vars
Diffstat (limited to 'test/test3.c')
| -rw-r--r-- | test/test3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test3.c b/test/test3.c index a5d165f..b99a543 100644 --- a/test/test3.c +++ b/test/test3.c @@ -27,7 +27,7 @@ struct bitset { unsigned long long u; }; void bscopy(struct bitset dst[/*siz*/], const struct bitset src[/*siz*/], unsigned siz) { - while (siz--) dst++->u = src++->u; + for (; siz; --siz, ++dst, ++src) dst->u = src->u; } |