Mercurial > vim
diff src/libvterm/src/pen.c @ 11790:4dfebc1b2674 v8.0.0777
patch 8.0.0777: compiler warnings with 64 bit compiler
commit https://github.com/vim/vim/commit/a1b5b0928118b135f9917679c0da28175c845140
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 26 21:29:34 2017 +0200
patch 8.0.0777: compiler warnings with 64 bit compiler
Problem: Compiler warnings with 64 bit compiler.
Solution: Add type casts. (Mike Williams)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 26 Jul 2017 21:30:04 +0200 |
parents | c76b672df584 |
children | 1c0c6918926f |
line wrap: on
line diff
--- a/src/libvterm/src/pen.c +++ b/src/libvterm/src/pen.c @@ -80,9 +80,9 @@ static int lookup_colour(const VTermStat if(argcount < 3) return argcount; - col->red = CSI_ARG(args[0]); - col->green = CSI_ARG(args[1]); - col->blue = CSI_ARG(args[2]); + col->red = (uint8_t)CSI_ARG(args[0]); + col->green = (uint8_t)CSI_ARG(args[1]); + col->blue = (uint8_t)CSI_ARG(args[2]); return 3;