aboutsummaryrefslogtreecommitdiff
path: root/stdio/memstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio/memstream.c')
-rw-r--r--stdio/memstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio/memstream.c b/stdio/memstream.c
index cfac39f..fe2ce0a 100644
--- a/stdio/memstream.c
+++ b/stdio/memstream.c
@@ -39,7 +39,7 @@ enlarge_buffer (register FILE *stream, int c)
*info->bufsize = stream->__bufp - stream->__buffer;
if (stream->__target != -1
- && stream->__target > *info->bufsize)
+ && (size_t) stream->__target > *info->bufsize)
/* Our target (where the buffer maps to) is always zero except when
the user just did a SEEK_END fseek. If he sought within the
buffer, we need do nothing and will zero the target below. If he