diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2024-01-11 19:49:32 -0500 |
|---|---|---|
| committer | Garrett Cox <garrettjcox@gmail.com> | 2024-05-22 09:04:57 -0500 |
| commit | bba57b078ee70fd211ac1bf0611c4e77e94a0c12 (patch) | |
| tree | d82f11867d8d2f2fe9f8eddd8d49eac479f32e8b /mm/src/code | |
| parent | c351a4a580d49709bf93cfaa7af23e1fdc7e248c (diff) | |
Fix (2) pointers cast as u32
Diffstat (limited to 'mm/src/code')
| -rw-r--r-- | mm/src/code/z_jpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/src/code/z_jpeg.c b/mm/src/code/z_jpeg.c index ebe40b8b9..39c1e5d7f 100644 --- a/mm/src/code/z_jpeg.c +++ b/mm/src/code/z_jpeg.c @@ -109,7 +109,7 @@ void Jpeg_CopyToZbuffer(u16* src, u16* zbuffer, s32 x, s32 y) { * unaligned values in JPEG header files. */ u16 Jpeg_GetUnalignedU16(u8* ptr) { - if (((u32)ptr & 1) == 0) { + if (((uintptr_t)ptr & 1) == 0) { // Read the value normally if it's aligned to a 16-bit address. return *(u16*)ptr; } else { |
