Remove erroneous casts
This commit is contained in:
@ -58,7 +58,7 @@ int atomic_load_int32(const int *variable)
|
|||||||
#ifdef MXS_USE_ATOMIC_BUILTINS
|
#ifdef MXS_USE_ATOMIC_BUILTINS
|
||||||
return __atomic_load_n(variable, __ATOMIC_SEQ_CST);
|
return __atomic_load_n(variable, __ATOMIC_SEQ_CST);
|
||||||
#else
|
#else
|
||||||
return __sync_fetch_and_or((volatile int *)variable, 0);
|
return __sync_fetch_and_or(variable, 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ int64_t atomic_load_int64(const int64_t *variable)
|
|||||||
#ifdef MXS_USE_ATOMIC_BUILTINS
|
#ifdef MXS_USE_ATOMIC_BUILTINS
|
||||||
return __atomic_load_n(variable, __ATOMIC_SEQ_CST);
|
return __atomic_load_n(variable, __ATOMIC_SEQ_CST);
|
||||||
#else
|
#else
|
||||||
return __sync_fetch_and_or((volatile int *)variable, 0);
|
return __sync_fetch_and_or(variable, 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ uint64_t atomic_load_uint64(const uint64_t *variable)
|
|||||||
#ifdef MXS_USE_ATOMIC_BUILTINS
|
#ifdef MXS_USE_ATOMIC_BUILTINS
|
||||||
return __atomic_load_n(variable, __ATOMIC_SEQ_CST);
|
return __atomic_load_n(variable, __ATOMIC_SEQ_CST);
|
||||||
#else
|
#else
|
||||||
return __sync_fetch_and_or((volatile int *)variable, 0);
|
return __sync_fetch_and_or(variable, 0);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user