diff options
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/ddt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/ddt.c b/module/zfs/ddt.c index b94a9f54e..7b0b1d896 100644 --- a/module/zfs/ddt.c +++ b/module/zfs/ddt.c @@ -423,8 +423,8 @@ ddt_stat_add(ddt_stat_t *dst, const ddt_stat_t *src, uint64_t neg) ASSERT(neg == 0 || neg == -1ULL); /* add or subtract */ - while (d < d_end) - *d++ += (*s++ ^ neg) - neg; + for (int i = 0; i < d_end - d; i++) + d[i] += (s[i] ^ neg) - neg; } static void |