Skip to content

Commit afbc049

Browse files
Make the circular buffer's _size and _bufend members immutable.
1 parent 06b1c3f commit afbc049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp8266/cbuf.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ class cbuf {
113113
return (ptr == _bufend) ? _buf : ptr;
114114
}
115115

116-
size_t _size;
116+
const size_t _size;
117117
char* _buf;
118-
char* _bufend;
118+
const char* const _bufend;
119119
char* _begin;
120120
char* _end;
121121
};

0 commit comments

Comments
 (0)