X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=Common%2Frt%20api%2FRTI2Reader.cpp;h=57f671c3459dd9b3dd2f4c8116591ea8956d47e4;hb=refs%2Fremotes%2Forigin%2Fmaster;hp=cd1e85d163f32f313092f2b628a43fb4dbaeda27;hpb=7a1030772df696d2c07dc98c89a673a742ee5f64;p=freerainbowtables diff --git a/Common/rt api/RTI2Reader.cpp b/Common/rt api/RTI2Reader.cpp index cd1e85d..57f671c 100644 --- a/Common/rt api/RTI2Reader.cpp +++ b/Common/rt api/RTI2Reader.cpp @@ -84,7 +84,7 @@ RTI2Reader::~RTI2Reader(void) } -unsigned int RTI2Reader::GetChainsLeft() +uint32 RTI2Reader::GetChainsLeft() { long len = GetFileLen(m_pFile); return len / m_chainsizebytes - m_chainPosition; @@ -104,6 +104,7 @@ int RTI2Reader::ReadChains(unsigned int &numChains, RainbowChain *pData) while(true) // Fast forward to current position { + /// XXX // ALERT: Possible problem here if m_indexrowsizebytes > 1 as pNumChains is a unsigned char. unsigned int NumChainsInRow = (unsigned int)*(pNumChains + indexRow * m_indexrowsizebytes); if(m_indexrowsizebytes > 1)