Obsolete golang-120
[oi-userland.git] / components / library / qt6 / patches / 09-qwavefrontmesh.cpp.patch
blob43129a9cf811ba6b9e520dc72ed316cdf043efb9
1 diff -Nru qt-everywhere-src-6.3.2.orig/qtdeclarative/src/labs/wavefrontmesh/qwavefrontmesh.cpp qt-everywhere-src-6.3.2/qtdeclarative/src/labs/wavefrontmesh/qwavefrontmesh.cpp
2 --- qt-everywhere-src-6.3.2.orig/qtdeclarative/src/labs/wavefrontmesh/qwavefrontmesh.cpp 2023-09-19 16:28:08.031043407 +0200
3 +++ qt-everywhere-src-6.3.2/qtdeclarative/src/labs/wavefrontmesh/qwavefrontmesh.cpp 2022-09-06 10:52:24.000000000 +0200
4 @@ -375,12 +375,12 @@
8 - if (Q_UNLIKELY(p1 < 0 || p1 > UINT16_MAX
9 - || p2 < 0 || p2 > UINT16_MAX
10 - || p3 < 0 || p3 > UINT16_MAX
11 - || t1 < 0 || t1 > UINT16_MAX
12 - || t2 < 0 || t2 > UINT16_MAX
13 - || t3 < 0 || t3 > UINT16_MAX)) {
14 + if (Q_UNLIKELY(p1 < 0 || p1 > INT16_MAX
15 + || p2 < 0 || p2 > INT16_MAX
16 + || p3 < 0 || p3 > INT16_MAX
17 + || t1 < 0 || t1 > INT16_MAX
18 + || t2 < 0 || t2 > INT16_MAX
19 + || t3 < 0 || t3 > INT16_MAX)) {
20 setLastError(UnsupportedIndexSizeError);
21 return;
23 @@ -413,7 +413,7 @@
27 - if (Q_UNLIKELY(p4 < 0 || p4 > UINT16_MAX || t4 < 0 || t4 > UINT16_MAX)) {
28 + if (Q_UNLIKELY(p4 < 0 || p4 > INT16_MAX || t4 < 0 || t4 > INT16_MAX)) {
29 setLastError(UnsupportedIndexSizeError);
30 return;