aboutsummaryrefslogtreecommitdiffhomepage
path: root/output.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-08-04 15:11:43 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-08-04 15:11:43 -0700
commitc67702a4989c450acd2c9f02fb65aa757f74880f (patch)
treef1def9222481625273521642d68db72c46b866b1 /output.cpp
parent5880cd88c8e378efb3c76e0cfdff99dce0edf810 (diff)
Cleaned up lots of typecasts, simplified some string handling
Diffstat (limited to 'output.cpp')
-rw-r--r--output.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/output.cpp b/output.cpp
index b557d19a..b061693e 100644
--- a/output.cpp
+++ b/output.cpp
@@ -161,7 +161,7 @@ static bool write_color(char *todo, unsigned char idx, bool is_fg) {
} else {
/* We are attempting to bypass the term here. Generate the ANSI escape sequence ourself. */
char stridx[128];
- format_long_safe(stridx, (long)idx);
+ format_long_safe(stridx, idx);
char buff[128] = "\x1b[";
strcat(buff, is_fg ? "38;5;" : "48;5;");
strcat(buff, stridx);