shithub: sox

Download patch

ref: 1b80b0cff46fce8be418f7c90ab6292b5bf77853
parent: 668549e1df4f77e7850e0081908c2e50f6f70c06
author: robs <robs>
date: Fri May 25 17:18:43 EDT 2007

use min macro

--- a/src/biquad.c
+++ b/src/biquad.c
@@ -117,7 +117,7 @@
     sox_ssample_t *obuf, sox_size_t *isamp, sox_size_t *osamp)
 {
   biquad_t p = (biquad_t) effp->priv;
-  sox_size_t len = (*isamp > *osamp)? *osamp : *isamp;
+  sox_size_t len = min(*isamp, *osamp);
   *isamp = *osamp = len;
 
   while (len--)