diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-14 19:01:58 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-02-14 19:01:58 +0100 |
commit | f8d972c82d084a4bf4ba7e0b3d2b1b4f4b88ba65 (patch) | |
tree | ff2bffedd89adf935af2d460843fc14a8e1b696f /qtmips_gui | |
parent | f4e1c379a96021497acad5fe2ded09fcdb791f58 (diff) | |
download | qtmips-f8d972c82d084a4bf4ba7e0b3d2b1b4f4b88ba65.tar.gz qtmips-f8d972c82d084a4bf4ba7e0b3d2b1b4f4b88ba65.tar.bz2 qtmips-f8d972c82d084a4bf4ba7e0b3d2b1b4f4b88ba65.zip |
The conversion of address has to use toULong to allow access to the second part of address-space on 32-bit systems.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui')
-rw-r--r-- | qtmips_gui/hexlineedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_gui/hexlineedit.cpp b/qtmips_gui/hexlineedit.cpp index 761f153..7725aa3 100644 --- a/qtmips_gui/hexlineedit.cpp +++ b/qtmips_gui/hexlineedit.cpp @@ -88,7 +88,7 @@ void HexLineEdit::set_value(std::uint32_t value) { void HexLineEdit::on_edit_finished() { bool ok; std::uint32_t val; - val = text().toLong(&ok, 16); + val = text().toULong(&ok, 16); if (!ok) { set_value(last_set); return; |