diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-02-05 16:20:09 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-02-05 19:23:13 -0800 |
commit | fd10844c2b5fe0c1efa2dc034e6c9173b5ed82cb (patch) | |
tree | d161223df4ca3dbbda2a5f9f5915943149fd8c3b /output.cpp | |
parent | 35f230235290be2bb482acab986d7017c77ca208 (diff) |
Unbreak C++11 due to narrowing; use non-conflicting declaration FISH_COLORS instead of COLORS; remove deprecated register type.
Diffstat (limited to 'output.cpp')
-rw-r--r-- | output.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -52,7 +52,7 @@ /** Number of color names in the col array */ -#define COLORS (sizeof(col)/sizeof(wchar_t *)) +#define FISH_COLORS (sizeof(col)/sizeof(wchar_t *)) static int writeb_internal(char c); @@ -622,7 +622,7 @@ int output_color_code(const wcstring &val, bool is_background) if (! color_name.empty()) { - for (i=0; i<COLORS; i++) + for (i=0; i<FISH_COLORS; i++) { if (wcscasecmp(col[i], color_name.c_str()) == 0) { |