From: Martin Quinson Date: Wed, 15 Feb 2017 22:02:32 +0000 (+0100) Subject: cosmetics: reinterpret_cast does not mandate any intermediate cast X-Git-Tag: v3_15~372 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/073c70fa2bd7951dd4d22b889cc06ac4091fafb2?hp=cb2232bc40c4979932ee842fc266f593e7155ec3 cosmetics: reinterpret_cast does not mandate any intermediate cast --- diff --git a/src/bindings/java/jmsg_file.cpp b/src/bindings/java/jmsg_file.cpp index dff4b348e7..b061e2563a 100644 --- a/src/bindings/java/jmsg_file.cpp +++ b/src/bindings/java/jmsg_file.cpp @@ -14,7 +14,7 @@ void jfile_bind(JNIEnv *env, jobject jfile, msg_file_t fd) { } msg_file_t jfile_get_native(JNIEnv *env, jobject jfile) { - return reinterpret_cast(static_cast(env->GetLongField(jfile, jfile_field_bind))); + return reinterpret_cast(env->GetLongField(jfile, jfile_field_bind)); } JNIEXPORT void JNICALL Java_org_simgrid_msg_File_nativeInit(JNIEnv *env, jclass cls) {