From 9cc8a29e3362a76fc52cc56c93d8ed1a39baa457 Mon Sep 17 00:00:00 2001 From: rapperskull Date: Thu, 10 Nov 2022 20:38:34 +0100 Subject: [PATCH] Fix clang error about incompatible assignment in simg2simg.cpp Change-Id: Ibb5c9431e51525c083e2981979e831d7f0b8ea1d --- libsparse/simg2simg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsparse/simg2simg.cpp b/libsparse/simg2simg.cpp index a2c296e89..138173b3d 100644 --- a/libsparse/simg2simg.cpp +++ b/libsparse/simg2simg.cpp @@ -72,7 +72,7 @@ int main(int argc, char* argv[]) { exit(-1); } - out_s = calloc(sizeof(struct sparse_file*), files); + out_s = (struct sparse_file**)calloc(sizeof(struct sparse_file*), files); if (!out_s) { fprintf(stderr, "Failed to allocate sparse file array\n"); exit(-1);