Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
colesbury committed Aug 22, 2023
1 parent 4eba6bc commit de085b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Include/pyatomic_msc.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ _Py_atomic_compare_exchange_uint8(volatile uint8_t *address, uint8_t expected, u
static inline int
_Py_atomic_compare_exchange_uint16(volatile uint16_t *address, uint16_t expected, uint16_t value)
{
return (short)expected == _InterlockedCompareExchange8((volatile short*)address, (short)value, (short)expected);
return (short)expected == _InterlockedCompareExchange16((volatile short*)address, (short)value, (short)expected);
}

static inline int
Expand Down

0 comments on commit de085b7

Please sign in to comment.