* compiletime range check fixes. SVN now compiles with -CROriot

git-svn-id: trunk@12129 -
This commit is contained in:
marco 2008-11-16 19:08:03 +00:00
parent 4594758ae5
commit a472967423
4 changed files with 4 additions and 4 deletions

View File

@ -1378,7 +1378,7 @@ begin
FHashList := nil; FHashList := nil;
end; end;
SetHashCapacity(1); SetHashCapacity(1);
FHashTable^[0]:=longword(-1); // sethashcapacity does not always call rehash FHashTable^[0]:=(-1); // sethashcapacity does not always call rehash
if Assigned(FStrs) then if Assigned(FStrs) then
begin begin
FStrCount:=0; FStrCount:=0;

View File

@ -125,7 +125,7 @@ implementation
function packet_error : longint; function packet_error : longint;
{ return type might be wrong } { return type might be wrong }
begin begin
packet_error:= not (dword(0)); packet_error:= not ({dword}(0));
end; end;
// Next function also defined in mysql4_comdyn // Next function also defined in mysql4_comdyn

View File

@ -141,7 +141,7 @@ end;
function packet_error : longint; function packet_error : longint;
{ return type might be wrong } { return type might be wrong }
begin begin
packet_error:= not (dword(0)); packet_error:= not ({dword}(0));
end; end;
// Next function also defined in mysql4_com // Next function also defined in mysql4_com

View File

@ -28,7 +28,7 @@ end;}
function MYSQL_COUNT_ERROR : longint; function MYSQL_COUNT_ERROR : longint;
begin begin
MYSQL_COUNT_ERROR:= not (my_ulonglong(0)); MYSQL_COUNT_ERROR:= not ({my_ulonglong}(0));
end; end;