iglunix/extra/fish/output_tputs_cast.patch
2021-08-03 22:17:36 +00:00

11 lines
525 B
Diff

--- a/src/output.cpp
+++ b/src/output.cpp
@@ -364,7 +364,7 @@
scoped_push<outputter_t *> push(&s_tputs_receiver, this);
// On some systems, tputs takes a char*, on others a const char*.
// Like tparm, we just cast it to unconst, that should work everywhere.
- return tputs(const_cast<char *>(str), affcnt, tputs_writer);
+ return tputs(const_cast<char *>(str), affcnt, (int (*)(int)) tputs_writer);
}
/// Write a wide character to the outputter. This should only be used when writing characters from