]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliAltroBuffer.cxx
ALIROOT-5420 Changes for CDH v3
[u/mrichter/AliRoot.git] / RAW / AliAltroBuffer.cxx
index e3af905783ac17079e86271a6174a787b3994f80..815cfd67b0e7cc7d4d5af5cbe7f32144135fbf25 100644 (file)
@@ -265,7 +265,7 @@ UChar_t AliAltroBuffer::WriteRCUTrailer(Int_t rcuId)
 
   UInt_t currentFilePos = fFile->Tellp();
   UInt_t size = currentFilePos-fDataHeaderPos;
-  size -= sizeof(AliRawDataHeader);
+  size -= sizeof(AliRawDataHeaderV3);
   
   if ((size % 5) != 0) {
     AliFatal(Form("The current raw data payload is not a mutiple of 5 (%d) ! Can not write the RCU trailer !",size));
@@ -287,7 +287,7 @@ UChar_t AliAltroBuffer::WriteRCUTrailer(Int_t rcuId)
   //  FOr the moment the triler size is 2 32-bit words
   UInt_t buffer = (2 & 0x7F);
   buffer |= ((rcuId & 0x1FF) << 7);
-  buffer |= 0xAAAA << 16;
+  buffer |= 0xAAAAU << 16;
   fFile->WriteBuffer((char *)(&buffer),sizeof(UInt_t));
 
   return 0;