Skip to content
Snippets Groups Projects
Commit 615da649 authored by Yuchen Zeng's avatar Yuchen Zeng
Browse files

explicitly cast constant value to gpr_atm

parent 90b4a87d
No related branches found
No related tags found
No related merge requests found
...@@ -268,7 +268,7 @@ static void disconnect(grpc_exec_ctx *exec_ctx, grpc_subchannel *c) { ...@@ -268,7 +268,7 @@ static void disconnect(grpc_exec_ctx *exec_ctx, grpc_subchannel *c) {
con = GET_CONNECTED_SUBCHANNEL(c, no_barrier); con = GET_CONNECTED_SUBCHANNEL(c, no_barrier);
if (con != NULL) { if (con != NULL) {
GRPC_CONNECTED_SUBCHANNEL_UNREF(exec_ctx, con, "connection"); GRPC_CONNECTED_SUBCHANNEL_UNREF(exec_ctx, con, "connection");
gpr_atm_no_barrier_store(&c->connected_subchannel, 0xdeadbeef); gpr_atm_no_barrier_store(&c->connected_subchannel, (gpr_atm)0xdeadbeef);
} }
gpr_mu_unlock(&c->mu); gpr_mu_unlock(&c->mu);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment