Initialize member variables to avoid warnings

This commit is contained in:
catalinr
2019-10-14 07:53:21 +03:00
parent c150ece20f
commit 2fc569f0c2
9 changed files with 12 additions and 7 deletions

View File

@@ -288,7 +288,7 @@ private:
public:
// the initial state is direct
DecoderState() { mode = Direct; }
DecoderState() { mode = Direct; accum = bit = msb = 0; }
// switch to/from shifted mode
void ToDirect() { mode = Direct; }
@@ -317,7 +317,7 @@ private:
Mode mode;
public:
EncoderState() { mode = Direct; }
EncoderState() { mode = Direct; accum = bit = 0; }
void ToDirect() { mode = Direct; }
void ToShifted() { mode = Shifted; accum = bit = 0; }