summaryrefslogtreecommitdiff
path: root/Userland/Applications/HexEditor
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2022-04-12 18:55:27 +0200
committerLinus Groh <mail@linusgroh.de>2022-04-27 00:02:24 +0200
commitda7a8a8711faa56514cd6c2c2788b5fe8ebaf869 (patch)
tree2393d6da595d983b64928057a0800e33efc590a1 /Userland/Applications/HexEditor
parentdf57536c40e12fe14b92fccdae7c3db638d1a49e (diff)
downloadserenity-da7a8a8711faa56514cd6c2c2788b5fe8ebaf869.zip
HexEditor: Don't require the ValueInspectorModel's value size to be i32
Diffstat (limited to 'Userland/Applications/HexEditor')
-rw-r--r--Userland/Applications/HexEditor/HexEditorWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/HexEditor/HexEditorWidget.cpp b/Userland/Applications/HexEditor/HexEditorWidget.cpp
index 8698d7ebfe..a652e0a51a 100644
--- a/Userland/Applications/HexEditor/HexEditorWidget.cpp
+++ b/Userland/Applications/HexEditor/HexEditorWidget.cpp
@@ -54,7 +54,7 @@ HexEditorWidget::HexEditorWidget()
if (!index.is_valid())
return;
m_selecting_from_inspector = true;
- m_editor->set_selection(m_editor->selection_start_offset(), index.data(GUI::ModelRole::Custom).as_i32());
+ m_editor->set_selection(m_editor->selection_start_offset(), index.data(GUI::ModelRole::Custom).to_integer<size_t>());
m_editor->update();
};