fix: msg_stamp.size() is unsigned,should convert to int (#2523)

Co-authored-by: zjw <[email protected]>
This commit is contained in:
TouchZZZ
2025-05-22 17:47:28 +08:00
committed by GitHub
co-authored by zjw
parent 561bdbdfc0
commit eccf746847
+1 -1
View File
@@ -297,7 +297,7 @@
//timestamp
if(msg_vec.size() > 1){
std::vector<std::string> msg_stamp = funasr::split(msg_vec[1], ',');
for(int i=0; i<msg_stamp.size()-1; i+=2){
for(int i=0; i<(int)msg_stamp.size()-1; i+=2){
float begin = std::stof(msg_stamp[i])+msg_stimes[idx];
float end = std::stof(msg_stamp[i+1])+msg_stimes[idx];
cur_stamp += "["+std::to_string((int)(1000*begin))+","+std::to_string((int)(1000*end))+"],";