From e834b5be2d51dda1b6e1b11ad552f6834a19daa7 Mon Sep 17 00:00:00 2001 From: github action Date: Wed, 29 May 2024 20:56:45 +0000 Subject: [PATCH] Apply 'make format' --- include/verilated_vpi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/verilated_vpi.cpp b/include/verilated_vpi.cpp index a31901167..19e778a69 100644 --- a/include/verilated_vpi.cpp +++ b/include/verilated_vpi.cpp @@ -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(buffer.data()), buffer.capacity(), fmt, args_copy); + const int result + = VL_VSNPRINTF(const_cast(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