Skip to content

Commit

Permalink
xrGame: remove unvalid cast from __sync_val_compare_and_swap()
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Nov 6, 2018
1 parent 62f86e2 commit 07e806b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrGame/GameObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void CGameObject::MakeMeCrow()
#ifndef LINUX
if ((u32)_InterlockedCompareExchange((long*)&dwFrame_AsCrow, device_frame_id, object_frame_id) == device_frame_id)
#else
if (__sync_val_compare_and_swap((long*)&dwFrame_AsCrow, object_frame_id, device_frame_id) == device_frame_id)
if (__sync_val_compare_and_swap(&dwFrame_AsCrow, object_frame_id, device_frame_id) == device_frame_id)
#endif
return;

Expand Down

0 comments on commit 07e806b

Please sign in to comment.