summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/java/nio/channels
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/java/nio/channels')
-rw-r--r--libjava/gnu/java/nio/channels/natFileChannelPosix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/gnu/java/nio/channels/natFileChannelPosix.cc b/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
index 44beae6641d..b8f99378834 100644
--- a/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
+++ b/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
@@ -504,7 +504,7 @@ FileChannelImpl::mapImpl (jchar mmode, jlong position, jint size)
MappedByteBufferImpl *buf
= new MappedByteBufferImpl ((RawData *) ((char *) ptr + align),
size, mmode == 'r');
- if (ptr == MAP_FAILED)
+ if (ptr == (void *) MAP_FAILED)
throw new IOException (JvNewStringLatin1 (strerror (errno)));
buf->implPtr = reinterpret_cast<RawData*> (ptr);
buf->implLen = size+align;
OpenPOWER on IntegriCloud