Skip to content

Commit

Permalink
[ntuple] rearrange code to avoid a compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
silverweed committed Oct 18, 2024
1 parent 73c93f6 commit 09f8b94
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tree/ntuple/v7/src/RNTupleSerialize.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,10 @@ ROOT::Experimental::Internal::RNTupleSerializer::SerializeFieldStructure(ROOT::E
case ENTupleStructure::kRecord: return SerializeUInt16(0x02, buffer);
case ENTupleStructure::kVariant: return SerializeUInt16(0x03, buffer);
case ENTupleStructure::kUnsplit: return SerializeUInt16(0x04, buffer);
case ROOT::Experimental::Internal::kTestFutureFieldStructure: return SerializeUInt16(0x99, buffer);
default: throw RException(R__FAIL("ROOT bug: unexpected field structure type"));
default:
if (structure == ROOT::Experimental::Internal::kTestFutureFieldStructure)
return SerializeUInt16(0x99, buffer);
throw RException(R__FAIL("ROOT bug: unexpected field structure type"));
}
}

Expand Down

0 comments on commit 09f8b94

Please sign in to comment.