prepare for 64 bit hcode support

This commit is contained in:
Akash Mozumdar 2018-08-25 20:11:02 -04:00
parent 33210a95ac
commit 6d670324f5

View File

@ -133,7 +133,7 @@ namespace
HCode.remove(0, 1); HCode.remove(0, 1);
QRegExp address("^([\\dA-F]+):?"); QRegExp address("^([\\dA-F]+):?");
if (address.indexIn(HCode) == -1) return {}; if (address.indexIn(HCode) == -1) return {};
hp.address = address.cap(1).toInt(nullptr, 16); hp.address = address.cap(1).toULongLong(nullptr, 16);
HCode.remove(address.cap(0)); HCode.remove(address.cap(0));
if (HCode.length()) if (HCode.length())
{ {