summary refs log tree commit diff stats
path: root/nim/lexbase.pas
diff options
context:
space:
mode:
Diffstat (limited to 'nim/lexbase.pas')
-rw-r--r--nim/lexbase.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/nim/lexbase.pas b/nim/lexbase.pas
index f02c375ff..c840dc6d2 100644
--- a/nim/lexbase.pas
+++ b/nim/lexbase.pas
@@ -227,7 +227,7 @@ begin
   L.linenumber := 1; // lines start at 1
   L.fileOpened := false;
   if L.bufLen > 0 then begin
-    copyMem(L.buf, addr(buffer[strStart]), L.bufLen);
+    copyMem(L.buf, {@cast}pointer(buffer), L.bufLen);
     L.buf[L.bufLen-1] := EndOfFile;
   end
   else