]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix Ada-QNX task priority conversion
authorJohannes Kliemann <kliemann@adacore.com>
Tue, 5 Apr 2022 16:25:43 +0000 (16:25 +0000)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 18 May 2022 08:41:06 +0000 (08:41 +0000)
commitb271095d5076f837391b2726c1265ae2e91fafa8
tree109a1048549c9ff52400cf04bed4125cbd8dfe41
parentef07419f73ac5cc436282a607591e289bb480626
[Ada] Fix Ada-QNX task priority conversion

The conversion between OS and Ada priorties should be done in the wider
Interfaces.C.int type rather than Any_Priority otherwise
Constraint_Error will be raised when coverting Any_Priority'Last to int.

gcc/ada/

* libgnarl/s-osinte__qnx.adb (To_Target_Priority): Perform
arithmetic in int.
gcc/ada/libgnarl/s-osinte__qnx.adb