Index: lbxproxy-1.0.2/di/wire.c =================================================================== --- lbxproxy-1.0.2.orig/di/wire.c +++ lbxproxy-1.0.2/di/wire.c @@ -1116,7 +1116,7 @@ ProxyWorkProc(ClientPtr unused_client, p XServerPtr server; xLbxAllowMotionReq req; - if ((server = servers[(int)index]) == 0) + if ((server = servers[(int)(long)index]) == 0) return TRUE; if (!server->initialized) return TRUE;