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;