natFileChannelPosix.cc (mapImpl): Cast MAP_FAILED to void *.
* gnu/java/nio/channels/natFileChannelPosix.cc (mapImpl): Cast MAP_FAILED to void *. From-SVN: r79627
This commit is contained in:
parent
689ba89dd8
commit
acc63e4c3d
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue