From 5de49e6ea93ef70960c2844bfcdafa591021f228 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 8 Aug 2020 20:17:09 -0700 Subject: [PATCH] remove yet another -Wconversion warning --- lib/sfio/sfsetbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sfio/sfsetbuf.c b/lib/sfio/sfsetbuf.c index 2d25ee95c..302865aa8 100644 --- a/lib/sfio/sfsetbuf.c +++ b/lib/sfio/sfsetbuf.c @@ -273,7 +273,7 @@ void *sfsetbuf(reg Sfio_t * f, reg void * buf, reg size_t size) f->endb = f->data + size; } - f->flags = (f->flags & ~SF_MALLOC) | sf_malloc; + f->flags = (unsigned short)((f->flags & ~SF_MALLOC) | sf_malloc); if (obuf && obuf != f->data && osize > 0 && (oflags & SF_MALLOC)) { free((void *) obuf); -- 2.40.0