summaryrefslogtreecommitdiff
path: root/src/XrrCrtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XrrCrtc.c')
-rw-r--r--src/XrrCrtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XrrCrtc.c b/src/XrrCrtc.c
index a704a52..5ae35c5 100644
--- a/src/XrrCrtc.c
+++ b/src/XrrCrtc.c
@@ -93,8 +93,8 @@ XRRGetCrtcInfo (Display *dpy, XRRScreenResources *resources, RRCrtc crtc)
xci->npossible = rep.nPossibleOutput;
xci->possible = (RROutput *) (xci->outputs + rep.nOutput);
- _XRead32 (dpy, xci->outputs, rep.nOutput << 2);
- _XRead32 (dpy, xci->possible, rep.nPossibleOutput << 2);
+ _XRead32 (dpy, (long *) xci->outputs, rep.nOutput << 2);
+ _XRead32 (dpy, (long *) xci->possible, rep.nPossibleOutput << 2);
/*
* Skip any extra data