mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 21:40:34 +02:00
- avoid warnings (add typecast)
This commit is contained in:
parent
081a4aab35
commit
781415a0da
@ -235,7 +235,7 @@ begin
|
|||||||
If Size>high_of_res then
|
If Size>high_of_res then
|
||||||
Size:=high_of_res;
|
Size:=high_of_res;
|
||||||
Move (S2[1],fpc_AnsiStr_To_ShortStr[1],Size);
|
Move (S2[1],fpc_AnsiStr_To_ShortStr[1],Size);
|
||||||
byte(fpc_AnsiStr_To_ShortStr[0]):=Size;
|
byte(fpc_AnsiStr_To_ShortStr[0]):=byte(Size);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -841,7 +841,10 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.33 2002-10-21 19:52:47 jonas
|
Revision 1.34 2002-12-07 14:34:30 carl
|
||||||
|
- avoid warnings (add typecast)
|
||||||
|
|
||||||
|
Revision 1.33 2002/10/21 19:52:47 jonas
|
||||||
* fixed some buffer overflow errors in SetString (both short and
|
* fixed some buffer overflow errors in SetString (both short and
|
||||||
ansistring versions) (merged)
|
ansistring versions) (merged)
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ var
|
|||||||
l : longint;
|
l : longint;
|
||||||
Begin
|
Begin
|
||||||
BlockWrite(f,Buf,Count,l);
|
BlockWrite(f,Buf,Count,l);
|
||||||
Result:=l;
|
Result:=word(l);
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ var
|
|||||||
l : longint;
|
l : longint;
|
||||||
Begin
|
Begin
|
||||||
BlockWrite(f,Buf,Count,l);
|
BlockWrite(f,Buf,Count,l);
|
||||||
Result:=l;
|
Result:=integer(l);
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
||||||
@ -220,7 +220,7 @@ var
|
|||||||
l : longint;
|
l : longint;
|
||||||
Begin
|
Begin
|
||||||
BlockRead(f,Buf,Count,l);
|
BlockRead(f,Buf,Count,l);
|
||||||
Result:=l;
|
Result:=word(l);
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
||||||
@ -246,7 +246,7 @@ var
|
|||||||
l : longint;
|
l : longint;
|
||||||
Begin
|
Begin
|
||||||
BlockRead(f,Buf,Count,l);
|
BlockRead(f,Buf,Count,l);
|
||||||
Result:=l;
|
Result:=integer(l);
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
||||||
@ -412,7 +412,10 @@ End;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.5 2002-09-07 15:07:45 peter
|
Revision 1.6 2002-12-07 14:36:14 carl
|
||||||
|
- avoid warnings (add typecast)
|
||||||
|
|
||||||
|
Revision 1.5 2002/09/07 15:07:45 peter
|
||||||
* old logs removed and tabs fixed
|
* old logs removed and tabs fixed
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1119,7 +1119,7 @@ BEGIN
|
|||||||
End Else ObjType := Q^.ObjType; { Update object type }
|
End Else ObjType := Q^.ObjType; { Update object type }
|
||||||
End;
|
End;
|
||||||
If TPCompatible Then Begin
|
If TPCompatible Then Begin
|
||||||
ObjTypeWord := ObjType;
|
ObjTypeWord := word(ObjType);
|
||||||
Write(ObjTypeWord, SizeOf(ObjTypeWord))
|
Write(ObjTypeWord, SizeOf(ObjTypeWord))
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@ -2901,7 +2901,10 @@ END;
|
|||||||
END.
|
END.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.16 2002-10-31 13:08:04 carl
|
Revision 1.17 2002-12-07 14:37:15 carl
|
||||||
|
- avoid warnings (add typecast)
|
||||||
|
|
||||||
|
Revision 1.16 2002/10/31 13:08:04 carl
|
||||||
* forgot to init P buffer variable = crash
|
* forgot to init P buffer variable = crash
|
||||||
|
|
||||||
Revision 1.15 2002/10/31 12:47:30 carl
|
Revision 1.15 2002/10/31 12:47:30 carl
|
||||||
|
@ -587,8 +587,8 @@ Procedure HandleErrorAddrFrame (Errno : longint;addr,frame : longint);[public,al
|
|||||||
begin
|
begin
|
||||||
If pointer(ErrorProc)<>Nil then
|
If pointer(ErrorProc)<>Nil then
|
||||||
ErrorProc(Errno,pointer(addr),pointer(frame));
|
ErrorProc(Errno,pointer(addr),pointer(frame));
|
||||||
errorcode:=Errno;
|
errorcode:=word(Errno);
|
||||||
exitcode:=Errno;
|
exitcode:=word(Errno);
|
||||||
erroraddr:=pointer(addr);
|
erroraddr:=pointer(addr);
|
||||||
errorbase:=frame;
|
errorbase:=frame;
|
||||||
halt(errorcode);
|
halt(errorcode);
|
||||||
@ -757,7 +757,10 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.37 2002-11-18 18:33:51 peter
|
Revision 1.38 2002-12-07 14:36:33 carl
|
||||||
|
- avoid warnings (add typecast)
|
||||||
|
|
||||||
|
Revision 1.37 2002/11/18 18:33:51 peter
|
||||||
* Swap(QWord) constant support
|
* Swap(QWord) constant support
|
||||||
|
|
||||||
Revision 1.36 2002/10/14 19:39:17 peter
|
Revision 1.36 2002/10/14 19:39:17 peter
|
||||||
|
@ -223,7 +223,7 @@ begin
|
|||||||
If Size>high_of_res then
|
If Size>high_of_res then
|
||||||
Size:=high_of_res;
|
Size:=high_of_res;
|
||||||
Wide2AnsiMoveProc(PWideChar(S2),PChar(@fpc_WideStr_To_ShortStr[1]),Size);
|
Wide2AnsiMoveProc(PWideChar(S2),PChar(@fpc_WideStr_To_ShortStr[1]),Size);
|
||||||
byte(fpc_WideStr_To_ShortStr[0]):=Size;
|
byte(fpc_WideStr_To_ShortStr[0]):=byte(Size);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -913,7 +913,10 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.24 2002-10-10 16:08:50 florian
|
Revision 1.25 2002-12-07 14:35:34 carl
|
||||||
|
- avoid warnings (add typecast)
|
||||||
|
|
||||||
|
Revision 1.24 2002/10/10 16:08:50 florian
|
||||||
+ several widestring/pwidechar related helpers added
|
+ several widestring/pwidechar related helpers added
|
||||||
|
|
||||||
Revision 1.23 2002/10/02 18:21:52 peter
|
Revision 1.23 2002/10/02 18:21:52 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user