Merge pull request #17512 from taosdata/FIX/TD-19672-3.0

fix: resolve a format issue of printf in hashTest.cpp
This commit is contained in:
Shengliang Guan 2022-10-20 21:14:50 +08:00 committed by GitHub
commit c70006d96b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ void perfTest() {
char* name = (char*)taosMemoryCalloc(50000000, 9); char* name = (char*)taosMemoryCalloc(50000000, 9);
for (int64_t i = 0; i < 50000000; ++i) { for (int64_t i = 0; i < 50000000; ++i) {
sprintf(name + i * 9, "t%08d", i); sprintf(name + i * 9, "t%08" PRId64, i);
} }
for (int64_t i = 0; i < 50; ++i) { for (int64_t i = 0; i < 50; ++i) {