summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index b522a88b72..d41255bd32 100644
--- a/src/util.h
+++ b/src/util.h
@@ -443,7 +443,7 @@ struct MallocedBuffer {
MallocedBuffer() : data(nullptr) {}
explicit MallocedBuffer(size_t size) : data(Malloc<T>(size)), size(size) {}
- MallocedBuffer(char* data, size_t size) : data(data), size(size) {}
+ MallocedBuffer(T* data, size_t size) : data(data), size(size) {}
MallocedBuffer(MallocedBuffer&& other) : data(other.data), size(other.size) {
other.data = nullptr;
}