diff base/ResizeableBitset.h @ 124:4ab844784152

* 1507728: Crash when creating spectrogram of small soundfiles
author Chris Cannam
date Mon, 19 Jun 2006 14:19:55 +0000
parents 534373d65f39
children 146eb9e35baa
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 {