Fixed following bugs:
[ep-processor-libraries/dsplib.git] / ti / dsplib / src / DSPF_sp_fircirc / c674 / DSPF_sp_fircirc_d.c
index 97537dd13daac3fa58917d92a8de18ead578a36f..dc043aecba2dee7a49aef16c79452036fd1614f1 100644 (file)
@@ -156,7 +156,7 @@ void main()
         /* --------------------------------------------------------------- */
         for(i=0; i< ny; i++)  {
           pct_diff = 0;
-          if (abs((ptr_y_i[i]) > FLT_THRES) || (abs(ptr_y_cn[i]) > FLT_THRES))
+          if ((abs(ptr_y_i[i]) > FLT_THRES) || (abs(ptr_y_cn[i]) > FLT_THRES))
             pct_diff = (ptr_y_cn[i] - ptr_y_i[i]) / ptr_y_cn[i] * 100.0;
           if (pct_diff < 0) pct_diff *= -1;
           if (pct_diff > max_pct_diff) max_pct_diff = pct_diff;