mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 06:29:16 +02:00
* fixed range check errors
git-svn-id: trunk@12707 -
This commit is contained in:
parent
05fcdceb6d
commit
31f3d1ead1
@ -182,11 +182,11 @@ begin
|
|||||||
if aDecodedCount >= 1 then begin
|
if aDecodedCount >= 1 then begin
|
||||||
BufferByte(aValue shr (24 - (0 * 8)));
|
BufferByte(aValue shr (24 - (0 * 8)));
|
||||||
if aDecodedCount >= 2 then begin
|
if aDecodedCount >= 2 then begin
|
||||||
BufferByte(aValue shr (24 - (1 * 8)));
|
BufferByte((aValue shr (24 - (1 * 8))) and $ff);
|
||||||
if aDecodedCount >= 3 then begin
|
if aDecodedCount >= 3 then begin
|
||||||
BufferByte(aValue shr (24 - (2 * 8)));
|
BufferByte((aValue shr (24 - (2 * 8))) and $ff);
|
||||||
if aDecodedCount >= 4 then begin
|
if aDecodedCount >= 4 then begin
|
||||||
BufferByte(aValue shr (24 - (3 * 8)));
|
BufferByte((aValue shr (24 - (3 * 8))) and $ff);
|
||||||
if aDecodedCount >= 5 then begin
|
if aDecodedCount >= 5 then begin
|
||||||
raise EConvertError.Create('not enough decoded data (internal error).');
|
raise EConvertError.Create('not enough decoded data (internal error).');
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user