Make BitArray(unsigned) treat the argument as the number of bytes.

develop
Alexander Gavrilov 2012-02-12 18:06:00 +04:00
parent 1047c2517d
commit e39852ff2e
1 changed files with 2 additions and 2 deletions

@ -49,8 +49,8 @@ namespace DFHack
explicit BitArray(T last) : bits(NULL), size(0) {
extend(last);
}
explicit BitArray(unsigned last) : bits(NULL), size(0) {
extend(T(last));
explicit BitArray(unsigned bytes) : bits(NULL), size(0) {
resize(bytes);
}
void clear_all ( void )