Buff.reserve should take size_t

This commit is contained in:
John Colvin 2015-02-06 14:19:37 +00:00
parent f2879a4c37
commit 76967e6c8d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}