mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 13:09:16 +02:00
* SetString needs correctly typed argument
This commit is contained in:
parent
24109eb2a6
commit
70b0cb99d4
@ -278,9 +278,9 @@ procedure TScriptLexer.nextToken;
|
||||
tkLSHIFT..tkEQ: inc(p,2);
|
||||
#32..#255: inc(p);
|
||||
tkIDENT,tkNUMBER:
|
||||
setstring(curtokenstr,@data[start],p-start);
|
||||
setstring(curtokenstr,PChar(@data[start]),p-start);
|
||||
tkLITERAL:
|
||||
setstring(curtokenstr,@data[start+1],p-start-2);
|
||||
setstring(curtokenstr,PChar(@data[start+1]),p-start-2);
|
||||
end;
|
||||
curpos:=p;
|
||||
end;
|
||||
|
@ -81,7 +81,7 @@ implementation
|
||||
end;
|
||||
tmp[i]:='x';
|
||||
tmp[i-1]:='0';
|
||||
setstring(result,@tmp[i-1],high(tmp)+2-i);
|
||||
setstring(result,PChar(@tmp[i-1]),high(tmp)+2-i);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user