From 70db7d59459461ea54461d15ed21aa68c3bdacdf Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Sat, 22 Mar 2008 21:20:50 +0000 Subject: [PATCH] Fixed vncExtInit.cc compilation with gcc 4 series (vncExtInit.cc:754: error:cast from 'void*' to 'CARD32' loses precision) git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1.5-xserver@2443 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- unix/xserver/hw/vnc/vncExtInit.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/xserver/hw/vnc/vncExtInit.cc b/unix/xserver/hw/vnc/vncExtInit.cc index 95548783..6734762a 100644 --- a/unix/xserver/hw/vnc/vncExtInit.cc +++ b/unix/xserver/hw/vnc/vncExtInit.cc @@ -751,7 +751,7 @@ static int ProcVncExtGetQueryConnect(ClientPtr client) rep.timeout = qcTimeout; rep.addrLen = qcTimeout ? strlen(qcAddress) : 0; rep.userLen = qcTimeout ? strlen(qcUsername) : 0; - rep.opaqueId = (CARD32)queryConnectId; + rep.opaqueId = (CARD32)(long)queryConnectId; rep.length = (rep.userLen + rep.addrLen + 3) >> 2; if (client->swapped) { swaps(&rep.sequenceNumber, n); -- 2.39.5