Added cast to uint8
This commit is contained in:
parent
f295f726b0
commit
294296b226
|
@ -2456,14 +2456,14 @@ void cheatsAddCBACode(const char* code, const char* desc)
|
||||||
sscanf(buffer, "%x", &value);
|
sscanf(buffer, "%x", &value);
|
||||||
|
|
||||||
uint8_t array[8] = {
|
uint8_t array[8] = {
|
||||||
address & 255,
|
static_cast<uint8_t>(address & 255,
|
||||||
(address >> 8) & 255,
|
(address >> 8) & 255,
|
||||||
(address >> 16) & 255,
|
(address >> 16) & 255,
|
||||||
(address >> 24) & 255,
|
(address >> 24) & 255,
|
||||||
(value & 255),
|
(value & 255),
|
||||||
(value >> 8) & 255,
|
(value >> 8) & 255,
|
||||||
0,
|
0,
|
||||||
0
|
0)
|
||||||
};
|
};
|
||||||
|
|
||||||
if (cheatsCBAGetCount() == 0 && (address >> 28) == 9) {
|
if (cheatsCBAGetCount() == 0 && (address >> 28) == 9) {
|
||||||
|
|
Loading…
Reference in New Issue