File: int-conversion.patch

package info (click to toggle)
wine 10.0~repack-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 326,452 kB
  • sloc: ansic: 4,155,993; perl: 23,800; yacc: 22,031; javascript: 15,872; makefile: 12,352; pascal: 9,519; objc: 6,923; lex: 5,273; xml: 3,219; python: 2,688; cpp: 1,741; sh: 895; java: 750; asm: 299; cs: 62
file content (17 lines) | stat: -rw-r--r-- 697 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
description: fix 64-bit integer conversion warning (gcc13 -Wint-conversion)
author: Michael Gilbert <mgilbert@debian.org>

--- a/dlls/opengl32/unix_wgl.c
+++ b/dlls/opengl32/unix_wgl.c
@@ -1506,7 +1506,11 @@ NTSTATUS wow64_ext_glPathGlyphIndexRange
         .fontStyle = params32->fontStyle,
         .pathParameterTemplate = params32->pathParameterTemplate,
         .emScale = params32->emScale,
+#if defined(__x86_64__) || defined(__aarch64__)
+        .baseAndCount = params32->baseAndCount,
+#else
         .baseAndCount = {params32->baseAndCount[0], params32->baseAndCount[1]},
+#endif
     };
     NTSTATUS status;
     if ((status = ext_glPathGlyphIndexRangeNV( &params ))) return status;