updated machine-word-dependent cast to be agnostic

This commit is contained in:
Josh warner 2009-06-05 14:32:36 -06:00
parent e8f02be3dd
commit c7e134eb7a

View File

@ -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));
}