update: asn1_tag_index应该是常量,加上const描述

从代码逻辑可知, asn1_tag_index 是只读的
This commit is contained in:
Wendal Chen
2023-03-04 01:32:42 +08:00
committed by GitHub
parent c7be3c0bce
commit 171a15f2b4

View File

@@ -23,7 +23,7 @@
#include <gmssl/endian.h>
static char *asn1_tag_index[] = {
static const char *asn1_tag_index[] = {
"[0]", "[1]", "[2]", "[3]", "[4]", "[5]", "[6]", "[7]", "[8]", "[9]",
"[10]", "[11]", "[12]", "[13]", "[14]", "[15]", "[16]", "[17]", "[18]", "[19]",
"[20]", "[21]", "[22]", "[23]", "[24]", "[25]", "[26]", "[27]", "[28]", "[29]",