diff options
Diffstat (limited to 'js/src/gc/AllocKind.h')
-rw-r--r-- | js/src/gc/AllocKind.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/src/gc/AllocKind.h b/js/src/gc/AllocKind.h index cb3d063f89..f73352e557 100644 --- a/js/src/gc/AllocKind.h +++ b/js/src/gc/AllocKind.h @@ -197,13 +197,14 @@ constexpr auto SomeAllocKinds(AllocKind first = AllocKind::FIRST, // with each index corresponding to a particular alloc kind. template <typename ValueType> using AllAllocKindArray = - mozilla::EnumeratedArray<AllocKind, AllocKind::LIMIT, ValueType>; + mozilla::EnumeratedArray<AllocKind, ValueType, size_t(AllocKind::LIMIT)>; // ObjectAllocKindArray<ValueType> gives an enumerated array of ValueTypes, // with each index corresponding to a particular object alloc kind. template <typename ValueType> using ObjectAllocKindArray = - mozilla::EnumeratedArray<AllocKind, AllocKind::OBJECT_LIMIT, ValueType>; + mozilla::EnumeratedArray<AllocKind, ValueType, + size_t(AllocKind::OBJECT_LIMIT)>; /* * Map from C++ type to alloc kind for non-object types. JSObject does not have |