mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 14:49:11 +02:00
* use the VWideChar field to retrieve the WideChar value instead of VChar to fix usage on big endian systems
This commit is contained in:
parent
8fb803bba6
commit
6bf7e4c0d3
@ -1960,7 +1960,7 @@ begin
|
|||||||
case aValue.VType of
|
case aValue.VType of
|
||||||
vtInteger: Result:=aValue.VInteger;
|
vtInteger: Result:=aValue.VInteger;
|
||||||
vtBoolean: Result:=aValue.VBoolean;
|
vtBoolean: Result:=aValue.VBoolean;
|
||||||
vtWideChar: TValue.Make(@aValue.VChar,System.TypeInfo(WideChar),Result);
|
vtWideChar: TValue.Make(@aValue.VWideChar,System.TypeInfo(WideChar),Result);
|
||||||
vtInt64: Result:=aValue.VInt64^;
|
vtInt64: Result:=aValue.VInt64^;
|
||||||
vtQWord: Result:=aValue.VQWord^;
|
vtQWord: Result:=aValue.VQWord^;
|
||||||
vtChar: TValue.Make(@aValue.VChar,System.TypeInfo(AnsiChar),Result);
|
vtChar: TValue.Make(@aValue.VChar,System.TypeInfo(AnsiChar),Result);
|
||||||
|
Loading…
Reference in New Issue
Block a user