Added
Link Here
|
1 |
--- src/Cheats.cpp.orig 2018-12-29 21:27:02 UTC |
2 |
+++ src/Cheats.cpp |
3 |
@@ -1344,12 +1344,12 @@ void cheatsAddCBACode(const char *code, const char *de |
4 |
sscanf(buffer, "%x", &value); |
5 |
|
6 |
u8 array[8] = { |
7 |
- address & 255, |
8 |
- (address >> 8) & 255, |
9 |
- (address >> 16) & 255, |
10 |
- (address >> 24) & 255, |
11 |
- (value & 255), |
12 |
- (value >> 8) & 255, |
13 |
+ static_cast<u8>(address & 255), |
14 |
+ static_cast<u8>((address >> 8) & 255), |
15 |
+ static_cast<u8>((address >> 16) & 255), |
16 |
+ static_cast<u8>((address >> 24) & 255), |
17 |
+ static_cast<u8>((value & 255)), |
18 |
+ static_cast<u8>((value >> 8) & 255), |
19 |
0, |
20 |
0 |
21 |
}; |