Commit 135002e
committed
svc: Remove extra casts from UVISOR_SVC_OPCODE
We don't need the uint8_t cast. Performing a bitwise and with 0xFF is
good enough to force the range of values `id` can become. Remove the
uint8_t cast. Keep the uint16_t cast, as the opcode should be seen as a
uint16_t.1 parent 04458eb commit 135002e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
0 commit comments