mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 16:48:12 +02:00
* changed the parameters of the fpc_pchar_ansistr_intern_charmove() added in
r18906 from byte into sizeint (copy/paste error from the similar shortstring helper, where both source and destination are shortstrings) git-svn-id: branches/jvmbackend@18939 -
This commit is contained in:
parent
816f9c20c7
commit
ab7f0a4461
@ -54,7 +54,7 @@ Const
|
||||
|
||||
{$ifndef FPC_HAS_PCHAR_ANSISTR_INTERN_CHARMOVE}
|
||||
{$define FPC_HAS_PCHAR_ANSISTR_INTERN_CHARMOVE}
|
||||
procedure fpc_pchar_ansistr_intern_charmove(const src: pchar; const srcindex: byte; var dst: ansistring; const dstindex, len: byte); {$ifdef SYSTEMINLINE}inline;{$endif}
|
||||
procedure fpc_pchar_ansistr_intern_charmove(const src: pchar; const srcindex: sizeint; var dst: ansistring; const dstindex, len: sizeint); {$ifdef SYSTEMINLINE}inline;{$endif}
|
||||
begin
|
||||
move(src[srcindex],pbyte(pointer(dst))[dstindex],len);
|
||||
end;
|
||||
|
@ -185,7 +185,7 @@ end;
|
||||
|
||||
{$ifndef FPC_HAS_PCHAR_ANSISTR_INTERN_CHARMOVE}
|
||||
{$define FPC_HAS_PCHAR_ANSISTR_INTERN_CHARMOVE}
|
||||
procedure fpc_pchar_ansistr_intern_charmove(const src: pchar; const srcindex: byte; var dst: ansistring; const dstindex, len: byte); {$ifdef SYSTEMINLINE}inline;{$endif}
|
||||
procedure fpc_pchar_ansistr_intern_charmove(const src: pchar; const srcindex: sizeint; var dst: ansistring; const dstindex, len: sizeint); {$ifdef SYSTEMINLINE}inline;{$endif}
|
||||
begin
|
||||
JLSystem.arraycopy(JLObject(src),srcindex,JLObject(AnsistringClass(dst).fdata),dstindex,len);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user