mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 07:05:40 +12:00
Avoid narrowing conversions in initializer list
This commit is contained in:
parent
27828b1351
commit
5161ef8ff3
1 changed files with 4 additions and 4 deletions
|
@ -217,10 +217,10 @@ static int disassembleARMThunk(lua_State* L) {
|
||||||
std::string disassembly;
|
std::string disassembly;
|
||||||
// Convert instruction to byte array to pass to Capstone
|
// Convert instruction to byte array to pass to Capstone
|
||||||
std::array<u8, 4> bytes = {
|
std::array<u8, 4> bytes = {
|
||||||
instruction & 0xff,
|
u8(instruction & 0xff),
|
||||||
(instruction >> 8) & 0xff,
|
u8((instruction >> 8) & 0xff),
|
||||||
(instruction >> 16) & 0xff,
|
u8((instruction >> 16) & 0xff),
|
||||||
(instruction >> 24) & 0xff,
|
u8((instruction >> 24) & 0xff),
|
||||||
};
|
};
|
||||||
|
|
||||||
disassembler.disassemble(disassembly, pc, std::span(bytes));
|
disassembler.disassemble(disassembly, pc, std::span(bytes));
|
||||||
|
|
Loading…
Add table
Reference in a new issue