diff options
| author | Lioncash <mathew1800@gmail.com> | 2016-07-18 02:15:07 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2016-07-18 02:15:07 -0400 |
| commit | 902a0ccedf3be9a04e2ba95f261ef50f9ba603c4 (patch) | |
| tree | 8e93442ca3bff1f7bc1e11a8ed1d3591be1b1dfa /Source | |
| parent | 5161351ca3eafa8026e93a23b82b893b472da33c (diff) | |
Sram: Correct constness of SetCardFlashID parameter
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/Core/HW/Sram.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/Core/HW/Sram.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Core/HW/Sram.cpp b/Source/Core/Core/HW/Sram.cpp index 4c8884c43d..47b5f7ca08 100644 --- a/Source/Core/Core/HW/Sram.cpp +++ b/Source/Core/Core/HW/Sram.cpp @@ -58,9 +58,9 @@ void InitSRAM() } } -void SetCardFlashID(u8* buffer, u8 card_index) +void SetCardFlashID(const u8* buffer, u8 card_index) { - u64 rand = Common::swap64(*(u64*)&(buffer[12])); + u64 rand = Common::swap64(&buffer[12]); u8 csum = 0; for (int i = 0; i < 12; i++) { diff --git a/Source/Core/Core/HW/Sram.h b/Source/Core/Core/HW/Sram.h index eb7be1e8ae..0f5db4ea10 100644 --- a/Source/Core/Core/HW/Sram.h +++ b/Source/Core/Core/HW/Sram.h @@ -79,7 +79,7 @@ union SRAM { }; #pragma pack(pop) void InitSRAM(); -void SetCardFlashID(u8* buffer, u8 card_index); +void SetCardFlashID(const u8* buffer, u8 card_index); void FixSRAMChecksums(); extern SRAM sram_dump; |
