diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2024-11-27 20:53:58 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2024-11-27 20:53:58 -0500 |
commit | 39c195cc40397d522f767c4692329a7d1e230f22 (patch) | |
tree | dbdddde202f3a388b2fe414837082af43ddc553f | |
parent | c4ec3bea1962ae16284a6a2fb9b91e7f7ed1e136 (diff) |
zero dot buf
-rw-r--r-- | main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -33,7 +33,7 @@ int main(int argc, const char *argv[]) forth::initialize<&fth>(dict.end()); fth->add(".", [](auto) { - char buf[32]; + char buf[32] = {}; std::to_chars(buf, buf + sizeof(buf), fth->pop(), fth->base); std::cout << buf << ' '; }); |