Skip to content

Commit

Permalink
Apply 'make format'
Browse files Browse the repository at this point in the history
  • Loading branch information
github action committed May 29, 2024
1 parent bd7689f commit e834b5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/verilated_vpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2380,7 +2380,8 @@ static void vl_strprintf(std::string& buffer, char const* fmt, ...) {
// Make copy of args since we may need to call VL_VSNPRINTF more than once
va_copy(args_copy, args);
// Try VL_VSNPRINTF in existing buffer
const int result = VL_VSNPRINTF(const_cast<char*>(buffer.data()), buffer.capacity(), fmt, args_copy);
const int result
= VL_VSNPRINTF(const_cast<char*>(buffer.data()), buffer.capacity(), fmt, args_copy);
va_end(args_copy);
const int required = result + 1; // Returned size doesn't include NUL terminator
// If there wasn't enough space, reallocate and try again
Expand Down

0 comments on commit e834b5b

Please sign in to comment.