Skip to content

Commit

Permalink
fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Nov 1, 2023
1 parent 79bfd4d commit ef00030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/StrUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2805,7 +2805,7 @@ static int CalcCapForJoin(const StrVec& v, const char* joint) {
// it's ok to over-estimate
int len = v.Size();
size_t jointLen = str::Len(joint);
int cap = len * jointLen;
int cap = len * (int)jointLen;
for (int i = 0; i < len; i++) {
char* s = v.at(i);
cap += (int)str::Len(s);
Expand Down

0 comments on commit ef00030

Please sign in to comment.