diff --git a/plugins/builtin/source/content/data_processor_nodes/other_nodes.cpp b/plugins/builtin/source/content/data_processor_nodes/other_nodes.cpp index d1dc206df522d..ba7b3e7a15dc6 100644 --- a/plugins/builtin/source/content/data_processor_nodes/other_nodes.cpp +++ b/plugins/builtin/source/content/data_processor_nodes/other_nodes.cpp @@ -193,7 +193,7 @@ namespace hex::plugin::builtin { if (from < 0 || static_cast(from) >= input.size()) throwNodeError("'from' input out of range"); - if (to < 0 || static_cast(to) >= input.size()) + if (to < 0 || static_cast(to) > input.size()) throwNodeError("'to' input out of range"); if (to <= from) throwNodeError("'to' input needs to be greater than 'from' input");