/* Functions related to the java storage API. */
-/* Copyright (c) 2012-2014. The SimGrid Team.
+/* Copyright (c) 2012-2015. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
}
msg_storage_t jstorage_get_native(JNIEnv * env, jobject jstorage) {
- return (msg_storage_t) (long) (*env)->GetLongField(env, jstorage, jstorage_field_Storage_bind);
+ return (msg_storage_t) (uintptr_t) (*env)->GetLongField(env, jstorage, jstorage_field_Storage_bind);
}
JNIEXPORT void JNICALL
}
void jstorage_bind(jobject jstorage, msg_storage_t storage, JNIEnv * env) {
- (*env)->SetLongField(env, jstorage, jstorage_field_Storage_bind, (jlong) (long) (storage));
+ (*env)->SetLongField(env, jstorage, jstorage_field_Storage_bind, (jlong) (uintptr_t) (storage));
}
jobject jstorage_ref(JNIEnv * env, jobject jstorage) {