From 986a2a79daf179f190e894c0a2428729a4e3c10e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 21 Jul 2020 20:04:26 +0200 Subject: [PATCH] Use proper size for spaceNeeded. --- TracyLua.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TracyLua.hpp b/TracyLua.hpp index e4e0e71c..fd84b506 100644 --- a/TracyLua.hpp +++ b/TracyLua.hpp @@ -150,9 +150,9 @@ static tracy_force_inline void SendLuaCallstack( lua_State* L, uint32_t depth ) const char* func[64]; uint32_t fsz[64]; uint32_t ssz[64]; - uint16_t spaceNeeded = 2; // cnt uint8_t cnt; + uint16_t spaceNeeded = sizeof( cnt ); for( cnt=0; cnt