summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2021-04-05 12:38:16 -0700
committerGitHub <noreply@github.com>2021-04-05 12:38:16 -0700
commit3c79f17a7dadb396f955f0912858c3230ed8e10e (patch)
treed0d997d0c68a6f1b2c4f76557c002d8a7b828169 /src/common.h
parent15a5156b05981c16ba181fae0e35c50418f86df0 (diff)
downloadwabt-3c79f17a7dadb396f955f0912858c3230ed8e10e.tar.gz
wabt-3c79f17a7dadb396f955f0912858c3230ed8e10e.tar.bz2
wabt-3c79f17a7dadb396f955f0912858c3230ed8e10e.zip
Memory64: support 64-bit data init-expr (#1656)
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index dbac0a89..e0b50f17 100644
--- a/src/common.h
+++ b/src/common.h
@@ -394,6 +394,7 @@ struct Limits {
has_max(true),
is_shared(is_shared),
is_64(is_64) {}
+ Type IndexType() const { return is_64 ? Type::I64 : Type::I32; }
uint64_t initial = 0;
uint64_t max = 0;