Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics: reinterpret_cast does not mandate any intermediate cast
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 15 Feb 2017 22:02:32 +0000 (23:02 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 15 Feb 2017 23:40:55 +0000 (00:40 +0100)
src/bindings/java/jmsg_file.cpp

index dff4b34..b061e25 100644 (file)
@@ -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) {
 }
 
 msg_file_t jfile_get_native(JNIEnv *env, jobject jfile) {
-  return reinterpret_cast<msg_file_t>(static_cast<std::intptr_t>(env->GetLongField(jfile, jfile_field_bind)));
+  return reinterpret_cast<msg_file_t>(env->GetLongField(jfile, jfile_field_bind));
 }
 
 JNIEXPORT void JNICALL Java_org_simgrid_msg_File_nativeInit(JNIEnv *env, jclass cls) {
 }
 
 JNIEXPORT void JNICALL Java_org_simgrid_msg_File_nativeInit(JNIEnv *env, jclass cls) {