SyncFence is castable to SyncObject.

Signed-off-by: Daniel Stone <[email protected]>
---
 Xext/sync.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Xext/sync.c b/Xext/sync.c
index d495116..7db4dbf 100644
--- a/Xext/sync.c
+++ b/Xext/sync.c
@@ -886,8 +886,8 @@ SyncCreate(ClientPtr client, XID id, unsigned char type)
        break;
     case SYNC_FENCE:
        resType = RTFence;
-       pSync = dixAllocateObjectWithPrivates(SyncFence,
-                                             PRIVATE_SYNC_FENCE);
+       pSync = (SyncObject *)dixAllocateObjectWithPrivates(SyncFence,
+                                                           PRIVATE_SYNC_FENCE);
        break;
     default:
        return NULL;
-- 
1.7.2.3

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to