changeset 124:4ab844784152

* 1507728: Crash when creating spectrogram of small soundfiles
author Chris Cannam
date Mon, 19 Jun 2006 14:19:55 +0000
parents 0f37e92e1782
children 3d67c2fd2217
files base/ResizeableBitset.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/base/ResizeableBitset.h	Thu Jun 15 15:48:05 2006 +0000
+++ b/base/ResizeableBitset.h	Mon Jun 19 14:19:55 2006 +0000
@@ -45,7 +45,7 @@
             delete m_bits;
             m_bits = new std::vector<uint8_t>;
         }
-        m_bits->assign(bits / 8, 0);
+        m_bits->assign(bits / 8 + 1, 0);
     }
     
     bool get(size_t column) const {