Mercurial > hg > audiodb
changeset 767:6d0d41604aba
Fix analogous signed/unsigned mistake in command-line binary
Now that I've made this mistake somewhat catastrophically, it's fairly
easy to spot.
author | mas01cr |
---|---|
date | Thu, 02 Jun 2011 16:31:44 +0000 |
parents | 6a5117d68ac4 |
children | b9dbe4611dde |
files | audioDB.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/audioDB.cpp Thu Jun 02 16:31:40 2011 +0000 +++ b/audioDB.cpp Thu Jun 02 16:31:44 2011 +0000 @@ -1137,7 +1137,7 @@ error("liszt failed"); } for(uint32_t i = 0; i < liszt->nresults; i++) { - unsigned int prop = (liszt->entries[i].nvectors - sequenceLength)/sequenceHop + 1; + int prop = (liszt->entries[i].nvectors - sequenceLength)/sequenceHop + 1; prop = prop > 0 ? prop : 0; if (prop > 0) { count++;