From c9f5617f06503d951b3ed808cf07fb6362a7f8d1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 8 Dec 2018 14:22:20 -0800 Subject: Avoid several uses of memset --- Alc/bs2b.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/bs2b.cpp') diff --git a/Alc/bs2b.cpp b/Alc/bs2b.cpp index 1307e5c1..b1833b8c 100644 --- a/Alc/bs2b.cpp +++ b/Alc/bs2b.cpp @@ -127,7 +127,7 @@ int bs2b_get_srate(struct bs2b *bs2b) void bs2b_clear(struct bs2b *bs2b) { - std::memset(&bs2b->last_sample, 0, sizeof(bs2b->last_sample)); + std::fill(std::begin(bs2b->last_sample), std::end(bs2b->last_sample), bs2b::t_last_sample{}); } /* bs2b_clear */ void bs2b_cross_feed(struct bs2b *bs2b, float *RESTRICT Left, float *RESTRICT Right, int SamplesToDo) -- cgit v1.2.3