From f8d972c82d084a4bf4ba7e0b3d2b1b4f4b88ba65 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Thu, 14 Feb 2019 19:01:58 +0100 Subject: 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 --- qtmips_gui/hexlineedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qtmips_gui/hexlineedit.cpp') 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; -- cgit v1.2.3