@@ -337,8 +337,7 @@ std::uint32_t SerializeExtraTypeInfo(const ROOT::Experimental::RExtraTypeInfoDes
337337 pos += RNTupleSerializer::SerializeRecordFramePreamble (*where);
338338
339339 pos += RNTupleSerializer::SerializeExtraTypeInfoId (desc.GetContentId (), *where);
340- pos += RNTupleSerializer::SerializeUInt32 (desc.GetTypeVersionFrom (), *where);
341- pos += RNTupleSerializer::SerializeUInt32 (desc.GetTypeVersionTo (), *where);
340+ pos += RNTupleSerializer::SerializeUInt32 (desc.GetTypeVersion (), *where);
342341 pos += RNTupleSerializer::SerializeString (desc.GetTypeName (), *where);
343342 pos += RNTupleSerializer::SerializeString (desc.GetContent (), *where);
344343
@@ -376,17 +375,15 @@ RResult<std::uint32_t> DeserializeExtraTypeInfo(const void *buffer, std::uint64_
376375 bytes += result.Unwrap ();
377376
378377 EExtraTypeInfoIds contentId{EExtraTypeInfoIds::kInvalid };
379- std::uint32_t typeVersionFrom;
380- std::uint32_t typeVersionTo;
381- if (fnFrameSizeLeft () < 3 * sizeof (std::uint32_t )) {
378+ std::uint32_t typeVersion;
379+ if (fnFrameSizeLeft () < 2 * sizeof (std::uint32_t )) {
382380 return R__FAIL (" extra type info record frame too short" );
383381 }
384382 result = RNTupleSerializer::DeserializeExtraTypeInfoId (bytes, contentId);
385383 if (!result)
386384 return R__FORWARD_ERROR (result);
387385 bytes += result.Unwrap ();
388- bytes += RNTupleSerializer::DeserializeUInt32 (bytes, typeVersionFrom);
389- bytes += RNTupleSerializer::DeserializeUInt32 (bytes, typeVersionTo);
386+ bytes += RNTupleSerializer::DeserializeUInt32 (bytes, typeVersion);
390387
391388 std::string typeName;
392389 std::string content;
@@ -400,8 +397,7 @@ RResult<std::uint32_t> DeserializeExtraTypeInfo(const void *buffer, std::uint64_
400397 bytes += result.Unwrap ();
401398
402399 desc.ContentId (contentId)
403- .TypeVersionFrom (typeVersionFrom)
404- .TypeVersionTo (typeVersionTo)
400+ .TypeVersion (typeVersion)
405401 .TypeName (typeName)
406402 .Content (content);
407403
0 commit comments