Skip to content

Commit

Permalink
atomic: change unsigned to volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Jan 8, 2025
1 parent 00606c2 commit 7b543d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/re_atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -602,13 +602,13 @@ static __forceinline unsigned __int64 _re_atomic_load(
v = __iso_volatile_load8((const volatile __int8*)a);
break;
case 2u:
v = __iso_volatile_load16((const unsigned __int16*)a);
v = __iso_volatile_load16((const volatile __int16*)a);
break;
case 4u:
v = __iso_volatile_load32((const unsigned __int32*)a);
v = __iso_volatile_load32((const volatile __int32*)a);
break;
default:
v = __iso_volatile_load64((const unsigned __int64*)a);
v = __iso_volatile_load64((const volatile __int64*)a);
break;
}

Expand Down

0 comments on commit 7b543d3

Please sign in to comment.