mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 00:08:12 +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
|
||||
vtInteger: Result:=aValue.VInteger;
|
||||
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^;
|
||||
vtQWord: Result:=aValue.VQWord^;
|
||||
vtChar: TValue.Make(@aValue.VChar,System.TypeInfo(AnsiChar),Result);
|
||||
|
Loading…
Reference in New Issue
Block a user