win32: fixed ram search endianness

This commit is contained in:
p989 2009-05-11 04:40:28 +00:00
parent 756b4fd8eb
commit 0876ae03d4
1 changed files with 4 additions and 4 deletions

View File

@ -389,14 +389,14 @@ template<> unsigned char ReadBigEndian(const unsigned char* data) { return *data
template<typename stepType, typename compareType>
compareType GetPrevValueFromVirtualIndex(unsigned int virtualIndex)
{
return ReadBigEndian<compareType>(buffers->s_prevValues + virtualIndex);
//return *(compareType*)(s_prevValues+virtualIndex);
// return ReadBigEndian<compareType>(buffers->s_prevValues + virtualIndex);
return *(compareType*)(buffers->s_prevValues+virtualIndex);
}
template<typename stepType, typename compareType>
compareType GetCurValueFromVirtualIndex(unsigned int virtualIndex)
{
return ReadBigEndian<compareType>(buffers->s_curValues + virtualIndex);
// return *(compareType*)(s_curValues+virtualIndex);
// return ReadBigEndian<compareType>(buffers->s_curValues + virtualIndex);
return *(compareType*)(buffers->s_curValues+virtualIndex);
}
template<typename stepType, typename compareType>
unsigned short GetNumChangesFromVirtualIndex(unsigned int virtualIndex)