Bugfix for ExternalRAMAllocator copy constructor (#3571)

This commit is contained in:
Benjamin Klotz authored and Jesse Hills committed 2022-06-18 17:25:51 +12:00
1 parent aa0c2dedd9
commit 8a1034a92f
1 file changed
+1 -1
+1 -1
View File
@@ -600,7 +600,7 @@ template<class T> class ExternalRAMAllocator {
ExternalRAMAllocator() = default;
ExternalRAMAllocator(Flags flags) : flags_{flags} {}
template<class U> constexpr ExternalRAMAllocator(const ExternalRAMAllocator<U> &other) : flags_{other.flags} {}
template<class U> constexpr ExternalRAMAllocator(const ExternalRAMAllocator<U> &other) : flags_{other.flags_} {}
T *allocate(size_t n) {
size_t size = n * sizeof(T);