diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 11c13d67c6b..71746e73543 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -2421,11 +2421,17 @@ void GdbEngine::updateTracepointCaptures(const Breakpoint &bp) else QTC_ASSERT(false, continue); caps << QVariant::fromValue( - {type, {}, match.capturedStart(2), match.capturedEnd(2)}); + {type, + {}, + static_cast(match.capturedStart(2)), + static_cast(match.capturedEnd(2))}); } else { QString expression = t.mid(1, t.length() - 2); caps << QVariant::fromValue( - {TracepointCaptureType::Expression, expression, match.capturedStart(2), match.capturedEnd(2)}); + {TracepointCaptureType::Expression, + expression, + static_cast(match.capturedStart(2)), + static_cast(match.capturedEnd(2))}); } match = capsRegExp.match(message, match.capturedEnd()); }