summaryrefslogtreecommitdiffstats
path: root/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/java/nio/channels/natFileChannelPosix.cc')
-rw-r--r--libjava/gnu/java/nio/channels/natFileChannelPosix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/gnu/java/nio/channels/natFileChannelPosix.cc b/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
index a2c1c7962b0..edc843b903a 100644
--- a/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
+++ b/libjava/gnu/java/nio/channels/natFileChannelPosix.cc
@@ -380,7 +380,7 @@ jint
FileChannelImpl::available (void)
{
#if defined (FIONREAD) || defined (HAVE_SELECT) || defined (HAVE_FSTAT)
- long num = 0;
+ int num = 0;
int r = 0;
bool num_set = false;
@@ -423,7 +423,7 @@ FileChannelImpl::available (void)
&& S_ISREG (sb.st_mode)
&& (where = lseek (fd, 0, SEEK_CUR)) != (off_t) -1)
{
- num = (long) (sb.st_size - where);
+ num = (int) (sb.st_size - where);
num_set = true;
}
}
OpenPOWER on IntegriCloud