// first check if the offset allows to add all data blocks without exceeding the
// range
- while (nofBlocks<tmp1 && tmp2>0) {
+ while (nofBlocks>tmp1 && tmp2>0) {
if (tmp2&0x1) {
HLTError("index range %#x exceeded for %d data blocks", nofBlocks, offset);
iResult=-ERANGE;
homer_uint32 origin=pReader->GetBlockDataOrigin( i );
homer_uint32 spec=pReader->GetBlockDataSpec( i );
AliHLTComponentDataType dt;
- AliHLTComponent::SetDataType(dt, Swap64(id), Swap32(origin));
- AliHLTOUTBlockDescriptor desc(dt, spec, offset|i);
+ AliHLTComponent::SetDataType(dt, ByteSwap64(id), ByteSwap32(origin));
+ AliHLTOUTBlockDescriptor desc(dt, spec, offset|i, this);
HLTDebug("adding block %d: %s %#x", i, AliHLTComponent::DataType2Text(dt).c_str(), spec);
iResult=AddBlockDescriptor(desc);
}
if (iResult==EBADMSG) {
HLTWarning("Format error in data block");
iResult*=-1;
- } else if (iResult==ENOKEY) {
+ } else if (iResult==126/*ENOKEY*/) {
HLTWarning("Format error in data block: can not find HOMER block descriptor id");
iResult*=-1;
} else {