mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 21:49:15 +02:00
* fix test due to WideString = UnicodeString and Comp = Extended on some platforms
git-svn-id: trunk@36878 -
This commit is contained in:
parent
e3ffeed1b2
commit
ff927eb11a
@ -78,7 +78,11 @@ begin
|
|||||||
specialize TestTypeKind<IDispatch>(tkInterface);
|
specialize TestTypeKind<IDispatch>(tkInterface);
|
||||||
specialize TestTypeKind<ShortString>(tkSString);
|
specialize TestTypeKind<ShortString>(tkSString);
|
||||||
specialize TestTypeKind<AnsiString>(tkAString);
|
specialize TestTypeKind<AnsiString>(tkAString);
|
||||||
|
{$ifdef FPC_WIDESTRING_EQUAL_UNICODESTRING}
|
||||||
|
specialize TestTypeKind<WideString>(tkUString);
|
||||||
|
{$else}
|
||||||
specialize TestTypeKind<WideString>(tkWString);
|
specialize TestTypeKind<WideString>(tkWString);
|
||||||
|
{$endif}
|
||||||
specialize TestTypeKind<UnicodeString>(tkUString);
|
specialize TestTypeKind<UnicodeString>(tkUString);
|
||||||
specialize TestTypeKind<AnsiChar>(tkChar);
|
specialize TestTypeKind<AnsiChar>(tkChar);
|
||||||
specialize TestTypeKind<WideChar>(tkWChar);
|
specialize TestTypeKind<WideChar>(tkWChar);
|
||||||
@ -87,7 +91,11 @@ begin
|
|||||||
specialize TestTypeKind<Double>(tkFloat);
|
specialize TestTypeKind<Double>(tkFloat);
|
||||||
specialize TestTypeKind<Extended>(tkFloat);
|
specialize TestTypeKind<Extended>(tkFloat);
|
||||||
specialize TestTypeKind<Currency>(tkFloat);
|
specialize TestTypeKind<Currency>(tkFloat);
|
||||||
|
{$if not (defined(CPUI386) or defined(CPUX86_64)) or (defined(WIN64) and sizeof(Extended) = sizeof(Double))}
|
||||||
specialize TestTypeKind<Comp>(tkInt64);
|
specialize TestTypeKind<Comp>(tkInt64);
|
||||||
|
{$else}
|
||||||
|
specialize TestTypeKind<Comp>(tkFloat);
|
||||||
|
{$endif}
|
||||||
specialize TestTypeKind<TSet>(tkSet);
|
specialize TestTypeKind<TSet>(tkSet);
|
||||||
specialize TestTypeKind<Variant>(tkVariant);
|
specialize TestTypeKind<Variant>(tkVariant);
|
||||||
{specialize TestTypeKind<file>(tkFile);
|
{specialize TestTypeKind<file>(tkFile);
|
||||||
|
Loading…
Reference in New Issue
Block a user