summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglfunctions.cpp
diff options
context:
space:
mode:
authorThiago Macieira <[email protected]>2025-12-01 12:50:08 -0800
committerMarc Mutz <[email protected]>2025-12-09 21:51:10 +0000
commita586505c346bc3e3ed86485d717a9f290bfea33b (patch)
treedaab2b1389f902ae0fc13e52876b83886bdf1c79 /src/gui/opengl/qopenglfunctions.cpp
parentc26310d8305e86412f0341883310546ae9036aa2 (diff)
QArrayData: catch negative capacities earlier
This isn't necessary because we would catch it inside of calculateBlockSize() → qCalculateBlockSize(), because the negative elementCount becomes a large positive one after the conversion to size_t. But since this change is effectively free anyway, we can do it and avoid a future in which those functions don't convert to an unsigned type. Pick-to: 6.11 6.10 Change-Id: I14a1f4f0828ea17ae7bafffdbf2ccddebf54bb2e Reviewed-by: Marc Mutz <[email protected]>
Diffstat (limited to 'src/gui/opengl/qopenglfunctions.cpp')
0 files changed, 0 insertions, 0 deletions