mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-16 03:14:35 +00:00
SmallString: Use L instead of L+1
Keep the stack aligned to power of 2.
This commit is contained in:
@@ -353,12 +353,12 @@ public:
|
||||
static SmallStackString from_vformat(fmt::string_view fmt, fmt::format_args args);
|
||||
|
||||
private:
|
||||
char m_stack_buffer[L + 1];
|
||||
char m_stack_buffer[L];
|
||||
|
||||
ALWAYS_INLINE void init()
|
||||
{
|
||||
m_buffer = m_stack_buffer;
|
||||
m_buffer_size = L + 1;
|
||||
m_buffer_size = L;
|
||||
|
||||
#ifdef _DEBUG
|
||||
std::memset(m_stack_buffer, 0, sizeof(m_stack_buffer));
|
||||
|
||||
Reference in New Issue
Block a user