From 3888f9f6a01af48c56a5b12943d0f5379fc64eb0 Mon Sep 17 00:00:00 2001 From: Geod24 Date: Mon, 11 May 2020 11:14:03 +0900 Subject: [PATCH] Fix a printf format deprecation triggered by 2.092 --- source/eventcore/drivers/posix/watchers.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/eventcore/drivers/posix/watchers.d b/source/eventcore/drivers/posix/watchers.d index ccc485e..ee973f2 100644 --- a/source/eventcore/drivers/posix/watchers.d +++ b/source/eventcore/drivers/posix/watchers.d @@ -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(); } }