Explorar o código

fix missing pointers on gpr_atm_acq_cas on x64

zeliard %!s(int64=10) %!d(string=hai) anos
pai
achega
91e97b84cc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/grpc/support/atm_win32.h

+ 1 - 1
include/grpc/support/atm_win32.h

@@ -73,7 +73,7 @@ static __inline int gpr_atm_no_barrier_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
 
 static __inline int gpr_atm_acq_cas(gpr_atm *p, gpr_atm o, gpr_atm n) {
 #ifdef GPR_ARCH_64
-  return o == (gpr_atm)InterlockedCompareExchangeAcquire64((volatile LONGLONG) p,
+  return o == (gpr_atm)InterlockedCompareExchangeAcquire64((volatile LONGLONG *) p,
                                                            (LONGLONG) n, (LONGLONG) o);
 #else
   return o == (gpr_atm)InterlockedCompareExchangeAcquire((volatile LONG *) p,