Skip to content

Commit 2bc92f5

Browse files
authored
set default before bit computation
1 parent 64dc408 commit 2bc92f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PWGLF/TableProducer/Nuspex/ebyeMaker.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ void encode16bit(int const& n, uint8_t& low, uint8_t& up)
9898
if (n >= (1 << 16)) {
9999
low = up = -1;
100100
return;
101-
}
101+
} else
102+
low = up = 0;
102103
int bbyte = 8;
103104
for (int b{0}; b < bbyte; ++b) {
104105
int bl = (n & (1 << b)) >> b;

0 commit comments

Comments
 (0)