Skip to content

Commit 39ff3f4

Browse files
Fix resistive sources working with SIMD
1 parent 760ca15 commit 39ff3f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/chowdsp_wdf/wdft/wdft_sources.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ namespace wdft
5858
/** Sets the resistance value of the series resistor, in Ohms. */
5959
void setResistanceValue (T newR)
6060
{
61-
if (newR == R_value)
61+
if (all (newR == R_value))
6262
return;
6363

6464
R_value = newR;
@@ -245,7 +245,7 @@ namespace wdft
245245
/** Sets the resistance value of the parallel resistor, in Ohms. */
246246
void setResistanceValue (T newR)
247247
{
248-
if (newR == R_value)
248+
if (all (newR == R_value))
249249
return;
250250

251251
R_value = newR;

0 commit comments

Comments
 (0)