buffer: Fix PVS/V547: base is never set to octal

This commit is contained in:
ZyX
2018-04-09 09:56:39 +03:00
parent 93be2ba542
commit 840027c7f5

View File

@@ -3110,7 +3110,6 @@ void free_titles(void)
/// be used when printing numbers in the status line.
typedef enum {
kNumBaseDecimal = 10,
kNumBaseOctal = 8,
kNumBaseHexadecimal = 16
} NumberBase;
@@ -3908,9 +3907,7 @@ int build_stl_str_hl(
// Note: The `*` means we take the width as one of the arguments
*t++ = '*';
*t++ = (char_u) (base == kNumBaseHexadecimal ? 'X'
: (base == kNumBaseOctal ? 'o'
: 'd'));
*t++ = (char_u)(base == kNumBaseHexadecimal ? 'X' : 'd');
*t = 0;
// }