mirror of https://github.com/buggins/dlangui.git
Merge branch 'master' of github.com:buggins/dlangui
This commit is contained in:
commit
5212b97151
|
@ -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