From 9281bf41acf975a739698999958b63cf8869855c Mon Sep 17 00:00:00 2001 From: Jeff McGlynn Date: Fri, 6 Jul 2018 17:31:43 -0700 Subject: Fix compilation with mingw On mingw, "IntType data_ = 0" fails to compile. Update to use IntType() instead. Change-Id: I706c15ddb993091aeb922ba7d9ef8cc4cc23bd64 --- src/base/bit_stream.h | 4 ++-- 1 file 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; }; -- cgit v1.2.3