diff options
Diffstat (limited to 'src/libvterm/src/pen.c')
-rw-r--r-- | src/libvterm/src/pen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libvterm/src/pen.c b/src/libvterm/src/pen.c index 81987f6bc..3c58c9cec 100644 --- a/src/libvterm/src/pen.c +++ b/src/libvterm/src/pen.c @@ -80,9 +80,9 @@ static int lookup_colour(const VTermState *state, int palette, const long args[] 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; |