diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-05-23 22:12:50 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-05-23 22:12:50 -0700 |
commit | 2d858f3bcfe9e3c9f56209624539df267e11a20c (patch) | |
tree | 5a361cd56c066e3f8c794757e547acec9aa44d5b | |
parent | 720758ac56ecb41e8156c7dae35d764fa926cd98 (diff) |
Cast pointer to long instead of int
Matches the cast passed in ((pointer)(long) server->index on line 1276)
Fixes gcc error:
di/wire.c:1119:27: error: cast from pointer to integer of different size
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | di/wire.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1116,7 +1116,7 @@ ProxyWorkProc(ClientPtr unused_client, pointer index) XServerPtr server; xLbxAllowMotionReq req; - if ((server = servers[(int)index]) == 0) + if ((server = servers[(long)index]) == 0) return TRUE; if (!server->initialized) return TRUE; |