X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust-java-agent%2Fjni%2Fcommon%2Flttng_ust_context.c;fp=liblttng-ust-java-agent%2Fjni%2Fcommon%2Flttng_ust_context.c;h=3bed11ec8ff435768259a460d9dffbfb0636efc0;hb=74687dca581f1bbe441e0222e57b911f9ff1ec11;hp=f412cc18fcb6c1b2eb33efe4526f78425401de55;hpb=e01dcb2058ac827044e79bdd627497e3ada57f35;p=lttng-ust.git diff --git a/liblttng-ust-java-agent/jni/common/lttng_ust_context.c b/liblttng-ust-java-agent/jni/common/lttng_ust_context.c index f412cc18..3bed11ec 100644 --- a/liblttng-ust-java-agent/jni/common/lttng_ust_context.c +++ b/liblttng-ust-java-agent/jni/common/lttng_ust_context.c @@ -374,7 +374,7 @@ JNIEXPORT jlong JNICALL Java_org_lttng_ust_agent_context_LttngContextApi_registe goto error_register; } - provider_ref = (jlong) provider; + provider_ref = (jlong) (long) provider; return provider_ref; /* Error handling. */