aboutsummaryrefslogtreecommitdiff
path: root/qtmips_gui
diff options
context:
space:
mode:
Diffstat (limited to 'qtmips_gui')
-rw-r--r--qtmips_gui/hexlineedit.cpp2
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;