fix incorrect bit shift

This commit is contained in:
Ryan Tang 2023-10-11 13:31:12 -04:00
parent b667d4a416
commit 10e734e07d

View File

@ -116,7 +116,7 @@ inline int SolReader::ReadNextBlock(int opt){
hit->SetDataType(DataFormat::RAW, ((blockStartIdentifier >> 1) & 0xF) == 0 ? DPPType::PHA : DPPType::PSD); hit->SetDataType(DataFormat::RAW, ((blockStartIdentifier >> 1) & 0xF) == 0 ? DPPType::PHA : DPPType::PSD);
} }
hit->dataType = blockStartIdentifier & 0xF; hit->dataType = blockStartIdentifier & 0xF;
hit->DPPType = ((blockStartIdentifier >> 1) & 0xF) == 0 ? DPPType::PHA : DPPType::PSD; hit->DPPType = ((blockStartIdentifier >> 4) & 0xF) == 0 ? DPPType::PHA : DPPType::PSD;
if( hit->dataType == DataFormat::ALL){ if( hit->dataType == DataFormat::ALL){
if( opt == 0 ){ if( opt == 0 ){