Skip to content

Commit

Permalink
Merge pull request #94 from DUNE-DAQ/aeo/fix-bitmap-warning
Browse files Browse the repository at this point in the history
Bitmap Loop Correction
  • Loading branch information
bieryAtFnal authored Jul 2, 2024
2 parents 867a745 + 327fdcc commit 7e8f0cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/apps/HDF5LIBS_TestDumpRecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ main(int argc, char** argv)
if (input_low != 0) { // Skip printing the positions if the value is 0.
ss << ", Input Low Bit Positions = ";
bit_sniff = 1;
for (bit_pos = 0; bit_pos < 32, num_bits > 0; bit_pos++) {
for (bit_pos = 0; bit_pos < 32 && num_bits > 0; bit_pos++) {
if (input_low & bit_sniff) {
if (num_bits == 1)
ss << bit_pos;
Expand All @@ -292,7 +292,7 @@ main(int argc, char** argv)
if (input_high != 0) {
ss << ", Input High Bit Positions = ";
bit_sniff = 1;
for (bit_pos = 0; bit_pos < 32, num_bits > 0; bit_pos++) {
for (bit_pos = 0; bit_pos < 32 && num_bits > 0; bit_pos++) {
if (input_high & bit_sniff) {
if (num_bits == 1)
ss << bit_pos;
Expand Down

0 comments on commit 7e8f0cf

Please sign in to comment.