Mercurial > hg > audiodb
diff sample.cpp @ 283:0e44de38d675
Trivial fix for some compilers trying to be smart and noting a path
whereby something uninitialized might be returned in yinv().
author | mas01cr |
---|---|
date | Thu, 03 Jul 2008 08:50:57 +0000 |
parents | 3be15407e814 |
children | cacad987d785 |
line wrap: on
line diff
--- a/sample.cpp Wed Jul 02 17:14:10 2008 +0000 +++ b/sample.cpp Thu Jul 03 08:50:57 2008 +0000 @@ -16,7 +16,8 @@ double ay = yfun(a); double by = yfun(b); - double c, cy; + double c = 0; + double cy; /* FIXME: simple binary search; there's probably some clever solver in gsl somewhere which is less sucky. */