Mercurial > hg > audiodb
comparison audioDB.cpp @ 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 | 2741bbda39d7 |
children | b9dbe4611dde |
comparison
equal
deleted
inserted
replaced
766:6a5117d68ac4 | 767:6d0d41604aba |
---|---|
1135 adb_liszt_results_t *liszt; | 1135 adb_liszt_results_t *liszt; |
1136 if(!(liszt = audiodb_liszt(adb))) { | 1136 if(!(liszt = audiodb_liszt(adb))) { |
1137 error("liszt failed"); | 1137 error("liszt failed"); |
1138 } | 1138 } |
1139 for(uint32_t i = 0; i < liszt->nresults; i++) { | 1139 for(uint32_t i = 0; i < liszt->nresults; i++) { |
1140 unsigned int prop = (liszt->entries[i].nvectors - sequenceLength)/sequenceHop + 1; | 1140 int prop = (liszt->entries[i].nvectors - sequenceLength)/sequenceHop + 1; |
1141 prop = prop > 0 ? prop : 0; | 1141 prop = prop > 0 ? prop : 0; |
1142 if (prop > 0) { | 1142 if (prop > 0) { |
1143 count++; | 1143 count++; |
1144 } | 1144 } |
1145 total += prop; | 1145 total += prop; |