Fix a printf format deprecation triggered by 2.092

This commit is contained in:
Geod24 2020-05-11 11:14:03 +09:00
parent 3fd907edd4
commit 3888f9f6a0

View file

@ -402,7 +402,8 @@ final class PollEventDriverWatchers(Events : EventDriverEvents) : EventDriverWat
import core.stdc.stdio : fprintf, stderr; import core.stdc.stdio : fprintf, stderr;
import core.stdc.stdlib : abort; import core.stdc.stdlib : abort;
fprintf(stderr, "Fatal error: %.*s\n", th.msg.length, th.msg.ptr); fprintf(stderr, "Fatal error: %.*s\n",
cast(int) th.msg.length, th.msg.ptr);
abort(); abort();
} }
} }