Skip to content

Commit

Permalink
Fix resistive sources working with SIMD
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Sep 8, 2024
1 parent 760ca15 commit 39ff3f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/chowdsp_wdf/wdft/wdft_sources.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace wdft
/** Sets the resistance value of the series resistor, in Ohms. */
void setResistanceValue (T newR)
{
if (newR == R_value)
if (all (newR == R_value))
return;

R_value = newR;
Expand Down Expand Up @@ -245,7 +245,7 @@ namespace wdft
/** Sets the resistance value of the parallel resistor, in Ohms. */
void setResistanceValue (T newR)
{
if (newR == R_value)
if (all (newR == R_value))
return;

R_value = newR;
Expand Down

0 comments on commit 39ff3f4

Please sign in to comment.