fix out of range
All checks were successful
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m6s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m17s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m7s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m14s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m21s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (pull_request) Successful in 59s
linux-mips64-gcc / linux-gcc-mips64el (push) Successful in 1m30s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (pull_request) Successful in 1m0s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (pull_request) Successful in 59s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (pull_request) Successful in 59s
linux-x64-gcc / linux-gcc (push) Successful in 1m52s
linux-hisiv500-gcc / linux-gcc-hisiv500 (pull_request) Successful in 1m14s
linux-mips64-gcc / linux-gcc-mips64el (pull_request) Successful in 1m34s
linux-x64-gcc / linux-gcc (pull_request) Successful in 1m51s

This commit is contained in:
tqcq 2024-01-12 16:29:05 +08:00
parent c98d702277
commit e63273fa2b

View File

@ -18,7 +18,7 @@ StrJoin(std::vector<nonstd::string_view> &vec,
if (iter == vec.cend()) { return ""; }
std::stringstream ss;
ss << *iter;
for (++iter; iter != iter + 1; ++iter) {
for (++iter; iter != vec.cend(); ++iter) {
if (ignore_empty_str && iter->empty()) { continue; }
ss << delimiter << *iter;
}