summaryrefslogtreecommitdiff
path: root/include/wabt/binary.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2022-11-15 08:54:09 -0800
committerGitHub <noreply@github.com>2022-11-15 08:54:09 -0800
commitd3e4ab30720c48d0c019fa521d70362b1bdd2bae (patch)
tree1a7a5f0d0e80b4c33038ae63c7362518f5a18f88 /include/wabt/binary.h
parentf7a3ab3f33c9119d1dffaa0c642436049e2a21d3 (diff)
downloadwabt-d3e4ab30720c48d0c019fa521d70362b1bdd2bae.tar.gz
wabt-d3e4ab30720c48d0c019fa521d70362b1bdd2bae.tar.bz2
wabt-d3e4ab30720c48d0c019fa521d70362b1bdd2bae.zip
Prefer `constexpr` over `static const`. NFC (#2065)
IIUC this is preferred in modern C++ and expresses indent better.
Diffstat (limited to 'include/wabt/binary.h')
-rw-r--r--include/wabt/binary.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wabt/binary.h b/include/wabt/binary.h
index a5740c89..485f15cb 100644
--- a/include/wabt/binary.h
+++ b/include/wabt/binary.h
@@ -65,7 +65,7 @@ enum class BinarySection {
Last = Tag,
};
/* clang-format on */
-static const int kBinarySectionCount = WABT_ENUM_COUNT(BinarySection);
+constexpr int kBinarySectionCount = WABT_ENUM_COUNT(BinarySection);
enum class BinarySectionOrder {
#define V(Name, name, code) Name,