* no need to copy the local var paramater in StrLen()

git-svn-id: branches/wasm@47948 -
This commit is contained in:
nickysn 2021-01-02 06:37:52 +00:00
parent c24446c037
commit 065d2c718d

View File

@ -36,12 +36,10 @@ function fd_write(fd: __wasi_fd_t;
function StrLen(P: PChar): size_t;
var
lp: pchar;
i: size_t;
begin
lp := p;
i := 0;
while lp[i]<>#0 do
while p[i]<>#0 do
Inc(i);
StrLen := i;
end;