summaryrefslogtreecommitdiffstats
path: root/lib/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stream.c')
-rw-r--r--lib/stream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stream.c b/lib/stream.c
index 79ce1791..14c7c589 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -158,7 +158,7 @@ struct stream *
stream_dup_pending (struct stream *s)
{
struct stream *new;
- int new_endp ;
+ size_t new_endp ;
STREAM_VERIFY_SANE (s);
@@ -1050,13 +1050,13 @@ stream_transfer(void* p, struct stream* s, void* limit)
size_t have = s->endp ;
STREAM_VERIFY_SANE(s);
- assert((p + have) <= limit) ;
+ assert(((uint8_t*)p + have) <= (uint8_t*)limit) ;
memcpy(p, s->data, have) ;
s->getp = s->endp = 0;
- return p + have ;
+ return (uint8_t*)p + have ;
} ;
/* Stream first in first out queue. */