Skip to content

Commit 07e806b

Browse files
committed
xrGame: remove unvalid cast from __sync_val_compare_and_swap()
1 parent 62f86e2 commit 07e806b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrGame/GameObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void CGameObject::MakeMeCrow()
115115
#ifndef LINUX
116116
if ((u32)_InterlockedCompareExchange((long*)&dwFrame_AsCrow, device_frame_id, object_frame_id) == device_frame_id)
117117
#else
118-
if (__sync_val_compare_and_swap((long*)&dwFrame_AsCrow, object_frame_id, device_frame_id) == device_frame_id)
118+
if (__sync_val_compare_and_swap(&dwFrame_AsCrow, object_frame_id, device_frame_id) == device_frame_id)
119119
#endif
120120
return;
121121

0 commit comments

Comments
 (0)