diff options
| author | yangwei <[email protected]> | 2023-08-02 13:40:47 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2023-08-02 18:22:12 +0800 |
| commit | b20f92c420b9a5c623bddc13488f151bb23c2edc (patch) | |
| tree | 411745219adfa598e4e7b436258b1c905358437d /src/config/config_parse.cpp | |
| parent | ae7175a4793f9d91b20f1d018213291cc5271eda (diff) | |
🐎 ci(stage): 增加cppcheck流程
Diffstat (limited to 'src/config/config_parse.cpp')
| -rw-r--r-- | src/config/config_parse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/config_parse.cpp b/src/config/config_parse.cpp index adc2dfc..dcf21c2 100644 --- a/src/config/config_parse.cpp +++ b/src/config/config_parse.cpp @@ -696,7 +696,7 @@ static int embed_layer_t_pton(char *config_val, embed_layer_t *result) } addrtype = addr_type_abbreviation_pton(layer_type_string); - if(__ADDR_TYPE_MAX-1 == addrtype){ + if(__ADDR_TYPE_MAX == addrtype){ return -1; } |
