aboutsummaryrefslogtreecommitdiff
path: root/src/base/bit_stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/bit_stream.h')
-rw-r--r--src/base/bit_stream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/bit_stream.h b/src/base/bit_stream.h
index c878197..2cda093 100644
--- a/src/base/bit_stream.h
+++ b/src/base/bit_stream.h
@@ -56,7 +56,7 @@ class BitStream {
data_size_ -= count;
return true;
} else {
- *result = 0;
+ *result = ResultType();
return false;
}
}
@@ -67,7 +67,7 @@ class BitStream {
: (IntType(1) << bits) - 1;
}
- IntType data_ = 0;
+ IntType data_ = IntType();
uint32_t data_size_ = 0;
};