diff --git a/src/client/src/tscStream.c b/src/client/src/tscStream.c index 7d0dc2e4b105e0ec57753b6ee259e03d4c3ae827..62443b23ff0032a817fbb187c3958471cb4f2699 100644 --- a/src/client/src/tscStream.c +++ b/src/client/src/tscStream.c @@ -357,7 +357,7 @@ bool sendChildTalbe(TAOS *taos, char *superName, char *tableName, TAOS_FIELD *fi // obtain dbname char * p = strstr(superName, "."); if(p) { // if have db prefix , under this db create table - int32_t len = p - superName; + int32_t len = (int32_t)(p - superName); strncpy(dbName, superName, len); dbName[len] = 0; // append str end sprintf(dbTable, "%s.%s", dbName, tableName);