zero dot buf

main
Clyne 3 weeks ago
parent c4ec3bea19
commit 39c195cc40
Signed by: clyne
GPG Key ID: 3267C8EBF3F9AFC7

@ -33,7 +33,7 @@ int main(int argc, const char *argv[])
forth::initialize<&fth>(dict.end()); forth::initialize<&fth>(dict.end());
fth->add(".", [](auto) { fth->add(".", [](auto) {
char buf[32]; char buf[32] = {};
std::to_chars(buf, buf + sizeof(buf), fth->pop(), fth->base); std::to_chars(buf, buf + sizeof(buf), fth->pop(), fth->base);
std::cout << buf << ' '; std::cout << buf << ' ';
}); });

Loading…
Cancel
Save