Merge pull request #143 from Geod24/deprecations

Fix a printf format deprecation triggered by 2.092
This commit is contained in:
Sönke Ludwig 2020-05-11 17:03:01 +02:00 committed by GitHub
commit 768c6cf4c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -402,7 +402,8 @@ final class PollEventDriverWatchers(Events : EventDriverEvents) : EventDriverWat
import core.stdc.stdio : fprintf, stderr;
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();
}
}