compile code with error "Error: Asm: word value exceeds bounds 65536"
Original Reporter info from Mantis: Dmitry Belkevich_2
-
Reporter name: Dmitry Belkevich_2
Original Reporter info from Mantis: Dmitry Belkevich_2
- Reporter name: Dmitry Belkevich_2
Description:
Try to comile a code and get such error: unit1.pas(46,17) Error: Asm: word value exceeds bounds 65536
In some other builds and Delphi compiled without errors
Steps to reproduce:
Just compile the code:
function Correct(TempInt: integer; Value: word): word; inline;
begin
if TempInt = 32768 then
Result := Value - TempInt
else
Result := 65536 - Value;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
Arr: array of word;
begin
Arr[0] := Correct(Temp, Arr[0]);
end;
Mantis conversion info:
- Mantis ID: 36389
- OS: Windows
- OS Build: 10
- Build: 62316M
- Platform: 64x
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 43670 (#ef7e4f6f)
- Monitored by: » @CuriousKit (J. Gareth Moreton)