A few fixes to make it compile under windows again

This commit is contained in:
2022-03-17 23:28:25 -04:00
parent 18c133ca9d
commit c44fe12a95
3 changed files with 7 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
#include <algorithm>
#include <cstdio>
#include <cinttypes>
struct PrintBufferCore : public eng::opnew {
// The most recent lines printed.
@@ -190,7 +191,7 @@ bool PrintChanneler::channel(const PrintBuffer *printbuffer, std::ostream &ostre
Invocation PrintChanneler::invocation(int64_t actor_id) {
char buf[80];
sprintf(buf, "%ld", line_);
sprintf(buf, PRId64, line_);
return Invocation(Invocation::KIND_FLUSH_PRINTS, actor_id, actor_id, buf, InvocationData());
}