[PATCH xserver 2/6] randr: Fix a compiler warning on 32-bit.

Eric Anholt eric at anholt.net
Mon May 7 23:46:16 UTC 2018


Signed-off-by: Eric Anholt <eric at anholt.net>
---
 randr/rrprovider.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/randr/rrprovider.c b/randr/rrprovider.c
index e4bc2bf6a786..c430f74770c2 100644
--- a/randr/rrprovider.c
+++ b/randr/rrprovider.c
@@ -276,7 +276,7 @@ RRInitPrimeSyncProps(ScreenPtr pScreen)
     Atom syncProp = MakeAtom(syncStr, strlen(syncStr), TRUE);
 
     int defaultVal = TRUE;
-    int validVals[2] = {FALSE, TRUE};
+    INT32 validVals[2] = {FALSE, TRUE};
 
     int i;
     for (i = 0; i < pScrPriv->numOutputs; i++) {
-- 
2.17.0



More information about the xorg-devel mailing list