mirror of https://github.com/buggins/dlangui.git
Buff.reserve should take size_t
This commit is contained in:
parent
f2879a4c37
commit
76967e6c8d
|
@ -1132,7 +1132,7 @@ final class Setting {
|
|||
string get() {
|
||||
return buffer[0 .. pos].dup;
|
||||
}
|
||||
void reserve(int size) {
|
||||
void reserve(size_t size) {
|
||||
if (pos + size >= buffer.length)
|
||||
buffer.length = buffer.length ? 4096 : (pos + size + 4096) * 2;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue