mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 08:43:07 +02:00
* compiletime range check fixes. SVN now compiles with -CROriot
git-svn-id: trunk@12129 -
This commit is contained in:
parent
4594758ae5
commit
a472967423
@ -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;
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user