Fix a printf format deprecation triggered by 2.092
This commit is contained in:
parent
3fd907edd4
commit
3888f9f6a0
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue