Various minor warning fixes

This commit is contained in:
Luke Street
2026-02-28 17:18:04 -07:00
parent f233787c0a
commit 989c6ac3db
11 changed files with 24 additions and 15 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ T* JSUConvertOffsetToPtr(const void* ptr, u32 offset) {
T* JSUConvertOffsetToPtr(const void* ptr, const void* offset) {
#endif
T* ret;
if (offset == NULL) {
if (offset == 0) {
ret = NULL;
} else {
ret = (T*)((intptr_t)ptr + (intptr_t)offset);