Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atomic: fix compilation for C++ and Windows-ARM64 #1259

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/re_atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -599,16 +599,16 @@ static __forceinline unsigned __int64 _re_atomic_load(

switch (size) {
case 1u:
v = __iso_volatile_load8((const unsigned __int8*)a);
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
Loading