Mercurial > hg > audiodb
changeset 50:4d9ea08b2f5f
Fix bug revealed by test case 0005: L2NORM needs write access to the
database.
author | mas01cr |
---|---|
date | Tue, 18 Sep 2007 09:31:41 +0000 |
parents | 53616d7dda08 |
children | f76b4182ecc8 |
files | audioDB.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/audioDB.cpp Tue Sep 18 09:25:10 2007 +0000 +++ b/audioDB.cpp Tue Sep 18 09:31:41 2007 +0000 @@ -971,7 +971,7 @@ } void audioDB::l2norm(const char* dbName){ - initTables(dbName, 0, 0); + initTables(dbName, true, 0); if(dbH->length>0){ unsigned numVectors = dbH->length/(sizeof(double)*dbH->dim); unitNormAndInsertL2(dataBuf, dbH->dim, numVectors, 0); // No append