Correct 64bit compilation error.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@906 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
0ea82dc33e
commit
54ff0827eb
@ -969,7 +969,7 @@ type
|
||||
FList : TObjectList;
|
||||
protected
|
||||
function GetItem(AIndex : PtrInt) : TBaseRemotable;{$IFDEF USE_INLINE}inline;{$ENDIF}
|
||||
function GetLength : PtrInt; override;
|
||||
function GetLength() : Integer; override;
|
||||
public
|
||||
class procedure Save(
|
||||
AObject : TBaseRemotable;
|
||||
@ -3560,7 +3560,7 @@ begin
|
||||
Result := TBaseRemotable(FList[AIndex]);
|
||||
end;
|
||||
|
||||
function TObjectCollectionRemotable.GetLength : PtrInt;
|
||||
function TObjectCollectionRemotable.GetLength() : Integer;
|
||||
begin
|
||||
Result := FList.Count;
|
||||
end;
|
||||
|
@ -33,6 +33,7 @@ type
|
||||
TWstBaseTest = class(TTestCase)
|
||||
protected
|
||||
procedure CheckEquals(expected, actual: TByteDynArray; msg: string = ''; const AStrict : Boolean = True); overload;
|
||||
procedure CheckEquals(expected, actual: Currency; msg: string = ''); overload;
|
||||
{$IFDEF FPC}
|
||||
procedure CheckEquals(expected, actual: Int64; msg: string = ''; const AStrict : Boolean = True); overload;
|
||||
procedure CheckEquals(expected, actual: QWord; msg: string = ''; const AStrict : Boolean = True); overload;
|
||||
@ -173,4 +174,10 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TWstBaseTest.CheckEquals(expected, actual : Currency; msg : string);
|
||||
begin
|
||||
if (expected <> actual) then
|
||||
FailNotEquals(CurrToStr(expected), CurrToStr(actual), msg{$IFDEF WST_DELPHI}, CallerAddr{$ENDIF WST_DELPHI});
|
||||
end;
|
||||
|
||||
end.
|
||||
|
@ -4801,8 +4801,8 @@ begin
|
||||
s := TMemoryStream.Create();
|
||||
f.SaveToStream(s);
|
||||
FreeAndNil(a);
|
||||
if not IsStrEmpty(AFilename) then
|
||||
s.SaveToFile(wstExpandLocalFileName(AFilename));
|
||||
// if not IsStrEmpty(AFilename) then
|
||||
// s.SaveToFile(wstExpandLocalFileName(AFilename));
|
||||
|
||||
a := TClass_B.Create();
|
||||
f := CreateFormatter(TypeInfo(TClass_B));
|
||||
|
Loading…
Reference in New Issue
Block a user