diff --git a/src/util.h b/src/util.h index 4036383dee92de..74706b4d275a69 100644 --- a/src/util.h +++ b/src/util.h @@ -451,7 +451,7 @@ struct MallocedBuffer { MallocedBuffer() : data(nullptr) {} explicit MallocedBuffer(size_t size) : data(Malloc(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; }