]> source.dussan.org Git - tigervnc.git/commitdiff
Do a better type cast that mirrors how we generate
authorPierre Ossman <ossman@cendio.se>
Thu, 19 Sep 2013 09:11:10 +0000 (09:11 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 19 Sep 2013 09:11:10 +0000 (09:11 +0000)
opaqueId in the first place. Patch by Michal Srb.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5135 3789f03b-4d11-0410-bbf8-ca57d06f2519

unix/xserver/hw/vnc/vncExtInit.cc

index 7148486db57665149db4baa5961f8e2412ac0c32..a9fd0e9fad0438cab0705207744d659ec4dcd43d 100644 (file)
@@ -1070,7 +1070,7 @@ static int ProcVncExtApproveConnect(ClientPtr client)
 {
   REQUEST(xVncExtApproveConnectReq);
   REQUEST_SIZE_MATCH(xVncExtApproveConnectReq);
-  if (queryConnectId == (void*)stuff->opaqueId) {
+  if ((CARD32)(long)queryConnectId == stuff->opaqueId) {
     for (int scr = 0; scr < screenInfo.numScreens; scr++) {
       if (desktop[scr]) {
         desktop[scr]->approveConnection(queryConnectId, stuff->approve,