mirror of https://github.com/ARMmbed/mbed-os.git
used Size+1 insted of size because no c++11 (no constexpr)
parent
c918e92124
commit
6cc142d8b1
|
@ -57,7 +57,7 @@ private:
|
|||
volatile uint16_t write;
|
||||
volatile uint16_t read;
|
||||
static const int size = Size+1; //a modern optimizer should be able to remove this so it uses no ram.
|
||||
T buf[size];
|
||||
T buf[Size+1];
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue