mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
updated machine-word-dependent cast to be agnostic
This commit is contained in:
parent
e8f02be3dd
commit
c7e134eb7a
@ -79,7 +79,7 @@ namespace {
|
||||
|
||||
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) {
|
||||
throwNew(e, "java/io/IOException", strerror(errno));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user