From 01c80ba94bf171637f17d6bbf70d2f637f7e52d1 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Tue, 15 Nov 2022 18:05:45 +0000 Subject: [PATCH] fp._ptr arithmetic --- std/stdio.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/stdio.d b/std/stdio.d index 1c508eb6b..773336c2c 100644 --- a/std/stdio.d +++ b/std/stdio.d @@ -5579,7 +5579,7 @@ private size_t readlnImpl(FILE* fps, ref char[] buf, dchar terminator, File.Orie app.putonly(p[0 .. i]); } fp._cnt -= i; - fp._ptr += i; + () @trusted { fp._ptr += i; }(); } buf = app.data;