diff options
author | Pierre Ossman <ossman@cendio.se> | 2013-09-19 09:11:10 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2013-09-19 09:11:10 +0000 |
commit | 5e711faec0c9f99e9cf3baf29a6c2584156e4f39 (patch) | |
tree | 6e9cb6465dbc314f12c55f55f7abfd221b6119c2 /unix | |
parent | 7adc488472d26f756e18eb08727cdb054785b347 (diff) | |
download | tigervnc-5e711faec0c9f99e9cf3baf29a6c2584156e4f39.tar.gz tigervnc-5e711faec0c9f99e9cf3baf29a6c2584156e4f39.zip |
Do a better type cast that mirrors how we generate
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
Diffstat (limited to 'unix')
-rw-r--r-- | unix/xserver/hw/vnc/vncExtInit.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/xserver/hw/vnc/vncExtInit.cc b/unix/xserver/hw/vnc/vncExtInit.cc index 7148486d..a9fd0e9f 100644 --- a/unix/xserver/hw/vnc/vncExtInit.cc +++ b/unix/xserver/hw/vnc/vncExtInit.cc @@ -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, |