summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2019-12-28 16:52:51 +0100
committerAmadeusz Sławiński <amade@asmblr.net>2019-12-28 23:40:18 +0100
commit9fd08507cc578638e66e8116c2ca79822a157efb (patch)
tree532c01756f4be159c65daab34e2894d6eaad8712
parent4dd664149c166409b4bd20ada3144a1968f6f355 (diff)
downloadscreen-9fd08507cc578638e66e8116c2ca79822a157efb.tar.gz
Fix variable type
ParseAttrColor returns uint64_t and ApplyAttrColor takes uint64_t as argument, int was used instead, which may cause vertical bar to not have color applied on split. Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
-rw-r--r--src/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index ecfaa7c..c3dcdfc 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4111,7 +4111,7 @@ static void DoCommandRendition(struct action *act)
/* sorendition */
if (args[0]) {
- int i = ParseAttrColor(args[0], 1);
+ uint64_t i = ParseAttrColor(args[0], 1);
if (i == 0)
return;
ApplyAttrColor(i, &mchar_so);
@@ -4129,7 +4129,7 @@ static void DoCommandSorendition(struct action *act)
int msgok = display && !*rc_name;
if (args[0]) {
- int i = ParseAttrColor(args[0], 1);
+ uint64_t i = ParseAttrColor(args[0], 1);
if (i == 0)
return;
ApplyAttrColor(i, &mchar_so);