mirror of
https://github.com/corda/corda.git
synced 2025-06-20 08:03:53 +00:00
updated machine-word-dependent cast to be agnostic
This commit is contained in:
@ -79,7 +79,7 @@ namespace {
|
|||||||
|
|
||||||
int descriptor(JNIEnv* e, HANDLE h)
|
int descriptor(JNIEnv* e, HANDLE h)
|
||||||
{
|
{
|
||||||
int fd = _open_osfhandle(reinterpret_cast<long>(h), 0);
|
int fd = _open_osfhandle(reinterpret_cast<intptr_t>(h), 0);
|
||||||
if (fd == -1) {
|
if (fd == -1) {
|
||||||
throwNew(e, "java/io/IOException", strerror(errno));
|
throwNew(e, "java/io/IOException", strerror(errno));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user