Skip to content

Commit

Permalink
Add a cast to silence a signedness conversion warning. (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkasting committed Jun 25, 2022
1 parent a109d7d commit 701e5e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion double-conversion/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ class StringBuilder {
void AddSubstring(const char* s, int n) {
DOUBLE_CONVERSION_ASSERT(!is_finalized() && position_ + n < buffer_.length());
DOUBLE_CONVERSION_ASSERT(static_cast<size_t>(n) <= strlen(s));
memmove(&buffer_[position_], s, n);
memmove(&buffer_[position_], s, static_cast<size_t>(n));
position_ += n;
}

Expand Down

0 comments on commit 701e5e7

Please sign in to comment.