|
@@ -919,7 +919,7 @@ end;
|
|
|
|
|
|
function IntToHex(Value: Int8): string;
|
|
function IntToHex(Value: Int8): string;
|
|
begin
|
|
begin
|
|
- Result:=IntToHex(Value, 2*SizeOf(Int8));
|
|
|
|
|
|
+ Result:=IntToHex(LongInt(Value) and $ff, 2*SizeOf(Int8));
|
|
end;
|
|
end;
|
|
|
|
|
|
function IntToHex(Value: UInt8): string;
|
|
function IntToHex(Value: UInt8): string;
|
|
@@ -929,7 +929,7 @@ end;
|
|
|
|
|
|
function IntToHex(Value: Int16): string;
|
|
function IntToHex(Value: Int16): string;
|
|
begin
|
|
begin
|
|
- Result:=IntToHex(Value, 2*SizeOf(Int16));
|
|
|
|
|
|
+ Result:=IntToHex(LongInt(Value) and $ffff, 2*SizeOf(Int16));
|
|
end;
|
|
end;
|
|
|
|
|
|
function IntToHex(Value: UInt16): string;
|
|
function IntToHex(Value: UInt16): string;
|