mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-27 08:23:08 +00:00
sag:: %zd only Linux
This commit is contained in:
1 parent
45538f6ce9
commit
9a87d46a32
1 file changed
+4
@@ -127,7 +127,11 @@ struct sagdist_t {
|
||||
fd = open(fname.c_str(), O_WRONLY | O_CREAT | O_TRUNC, 0666);
|
||||
if(write(fd, &N, 8) < 8) throw hr_exception("write error");
|
||||
size_t size = N*N*sizeof(distance);
|
||||
#ifdef LINUX
|
||||
println(hlog, "size is ", hr::format("%zd", size));
|
||||
#else
|
||||
println(hlog, "size is ", hr::format("%lld", (long long) size));
|
||||
#endif
|
||||
char *p = (char*) tab;
|
||||
while(size) {
|
||||
size_t written = write(fd, p, size);
|
||||
|
||||
Reference in new issue
Block a user