diff options
| author | Ahmad Samir <a.samirh78@gmail.com> | 2025-10-06 17:54:20 +0300 |
|---|---|---|
| committer | Ahmad Samir <a.samirh78@gmail.com> | 2025-10-07 02:02:08 +0300 |
| commit | a9ced75ee065c60442a9da81487fd9eb8dcdc6af (patch) | |
| tree | 2c1c237990879d655ab04d3bade39cdc9297b990 /src/corelib/global/qlogging.cpp | |
| parent | 04ee4e627bf7002ece660f70eedf29b9da4006c6 (diff) | |
QLogging: fix narrowing conversion assert
Amends a213dca680827336cb63de743be3f019c4521808. Pointed out by Eddy in
code review.
Pick-to: 6.10 6.8 6.5
Change-Id: I061f9892384fe62650dfec23842686d1ba53130a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qlogging.cpp')
| -rw-r--r-- | src/corelib/global/qlogging.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index 791a9d3bad1..aa37bd2268f 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -1445,7 +1445,7 @@ Q_NEVER_INLINE void QInternalMessageLogContext::populateBacktrace(int frameCount { assert(frameCount >= 0); BacktraceStorage &result = backtrace.emplace(TypicalBacktraceFrameCount + frameCount); - Q_ASSERT(frameCount == int(frameCount)); + Q_ASSERT(result.size() == int(result.size())); int n = ::backtrace(result.data(), int(result.size())); if (n <= 0) result.clear(); |
