From 79a684e74ac667484714930a9a5aadcd3bb34c3e Mon Sep 17 00:00:00 2001 From: Izzy Date: Sat, 9 Mar 2019 19:50:58 -0800 Subject: [PATCH] Fix loading for values >0x7F in the first byte. --- framefileio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framefileio.cpp b/framefileio.cpp index 3971c5b..713aecd 100644 --- a/framefileio.cpp +++ b/framefileio.cpp @@ -2044,7 +2044,7 @@ bool FrameFileIO::loadCabanaFile(QString filename, QVector* frames) thisFrame.len = 8; { - unsigned long long int tempData = tokens[3].toLongLong(NULL, 16); + unsigned long long int tempData = tokens[3].toULongLong(NULL, 16); thisFrame.data[0] = ((tempData >> 56) & 0xFF); thisFrame.data[1] = ((tempData >> 48) & 0xFF); thisFrame.data[2] = ((tempData >> 40) & 0xFF);