mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Fixed shadowing warning (issue #36)
This commit is contained in:
@@ -22,10 +22,10 @@ class StaticJsonBuffer : public JsonBuffer {
|
|||||||
size_t size() const { return _size; }
|
size_t size() const { return _size; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void* alloc(size_t size) {
|
virtual void* alloc(size_t bytes) {
|
||||||
if (_size + size > CAPACITY) return NULL;
|
if (_size + bytes > CAPACITY) return NULL;
|
||||||
void* p = &_buffer[_size];
|
void* p = &_buffer[_size];
|
||||||
_size += size;
|
_size += bytes;
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user