mirror of
https://github.com/esphome/esphome.git
synced 2024-09-20 01:27:31 +02:00
Bugfix for ExternalRAMAllocator copy constructor (#3571)
This commit is contained in:
parent
aa0c2dedd9
commit
8a1034a92f
1 changed files with 1 additions and 1 deletions
|
@ -600,7 +600,7 @@ template<class T> class ExternalRAMAllocator {
|
||||||
|
|
||||||
ExternalRAMAllocator() = default;
|
ExternalRAMAllocator() = default;
|
||||||
ExternalRAMAllocator(Flags flags) : flags_{flags} {}
|
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) {
|
T *allocate(size_t n) {
|
||||||
size_t size = n * sizeof(T);
|
size_t size = n * sizeof(T);
|
||||||
|
|
Loading…
Reference in a new issue