mirror of
https://github.com/neovim/neovim.git
synced 2025-12-08 15:42:52 +00:00
buffer: Fix PVS/V547: base is never set to octal
This commit is contained in:
@@ -3110,7 +3110,6 @@ void free_titles(void)
|
|||||||
/// be used when printing numbers in the status line.
|
/// be used when printing numbers in the status line.
|
||||||
typedef enum {
|
typedef enum {
|
||||||
kNumBaseDecimal = 10,
|
kNumBaseDecimal = 10,
|
||||||
kNumBaseOctal = 8,
|
|
||||||
kNumBaseHexadecimal = 16
|
kNumBaseHexadecimal = 16
|
||||||
} NumberBase;
|
} NumberBase;
|
||||||
|
|
||||||
@@ -3908,9 +3907,7 @@ int build_stl_str_hl(
|
|||||||
|
|
||||||
// Note: The `*` means we take the width as one of the arguments
|
// Note: The `*` means we take the width as one of the arguments
|
||||||
*t++ = '*';
|
*t++ = '*';
|
||||||
*t++ = (char_u) (base == kNumBaseHexadecimal ? 'X'
|
*t++ = (char_u)(base == kNumBaseHexadecimal ? 'X' : 'd');
|
||||||
: (base == kNumBaseOctal ? 'o'
|
|
||||||
: 'd'));
|
|
||||||
*t = 0;
|
*t = 0;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user