File tree 1 file changed +2
-2
lines changed
bsnes/ui-qt/debugger/tools/qhexedit2
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1023,7 +1023,7 @@ QHexEdit::ScopedMemoryTracker::ScopedMemoryTracker(QHexEdit *editor)
1023
1023
1024
1024
for (qint64 i = first; i < qMin (editorSize, last + BYTES_PER_LINE + 1 ); i++) {
1025
1025
const qint64 addr = i + _editor->_addressOffset ;
1026
- quint16 value = qFromLittleEndian<quint16>( currentData.mid (i-first, 1 ). data () );
1026
+ char value = currentData.at (i-first);
1027
1027
_dataHash.insert (addr, value);
1028
1028
}
1029
1029
}
@@ -1038,7 +1038,7 @@ QHexEdit::ScopedMemoryTracker::~ScopedMemoryTracker() {
1038
1038
const qint64 addr = i + _editor->_addressOffset ;
1039
1039
// Track any changes to memory we saw when the object was created, and
1040
1040
// register those changes with the memory tracker...
1041
- const quint16 value = qFromLittleEndian<quint16>( currentData.mid (i-first, 1 ). data () );
1041
+ char value = currentData.at (i-first);
1042
1042
if (_dataHash.contains (addr) && _dataHash[addr] != value) {
1043
1043
if (_editor->_hexChangesMap .contains (addr)) {
1044
1044
_editor->_hexChangesMap [addr] = FRAMES_TO_FADE_HEXBG;
You can’t perform that action at this time.
0 commit comments