diff --git a/source/libs/qworker/test/qworkerTests.cpp b/source/libs/qworker/test/qworkerTests.cpp index 8c5e802ef995998d38a2d03584145253216b01d5..8a48977c777af8d794a38ed1721319c4b0646953 100644 --- a/source/libs/qworker/test/qworkerTests.cpp +++ b/source/libs/qworker/test/qworkerTests.cpp @@ -140,7 +140,7 @@ void qwtBuildDropReqMsg(STaskDropReq *dropMsg, SRpcMsg *dropRpc) { return; } - char *msg = taosMemoryCalloc(1, msgSize); + char *msg = (char*)taosMemoryCalloc(1, msgSize); if (NULL == msg) { return; }