summaryrefslogtreecommitdiff
path: root/src/XrrOutput.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XrrOutput.c')
-rw-r--r--src/XrrOutput.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/XrrOutput.c b/src/XrrOutput.c
index 4df894e..85f0b6e 100644
--- a/src/XrrOutput.c
+++ b/src/XrrOutput.c
@@ -102,9 +102,9 @@ XRRGetOutputInfo (Display *dpy, XRRScreenResources *resources, RROutput output)
xoi->clones = (RROutput *) (xoi->modes + rep.nModes);
xoi->name = (char *) (xoi->clones + rep.nClones);
- _XRead32 (dpy, xoi->crtcs, rep.nCrtcs << 2);
- _XRead32 (dpy, xoi->modes, rep.nModes << 2);
- _XRead32 (dpy, xoi->clones, rep.nClones << 2);
+ _XRead32 (dpy, (long *) xoi->crtcs, rep.nCrtcs << 2);
+ _XRead32 (dpy, (long *) xoi->modes, rep.nModes << 2);
+ _XRead32 (dpy, (long *) xoi->clones, rep.nClones << 2);
/*
* Read name and '\0' terminate