]> source.dussan.org Git - tigervnc.git/commitdiff
Fixed vncExtInit.cc compilation with gcc 4 series
authorAdam Tkac <atkac@redhat.com>
Sat, 22 Mar 2008 21:20:50 +0000 (21:20 +0000)
committerAdam Tkac <atkac@redhat.com>
Sat, 22 Mar 2008 21:20:50 +0000 (21:20 +0000)
(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

index 955487839d16f7e3398a3916e10220f0d679088c..6734762ad5fdad6eff4f83272c9d04a90eb4599e 100644 (file)
@@ -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);