summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorroeming <brother64youyou@gmail.com>2025-12-18 16:31:44 -0500
committerGitHub <noreply@github.com>2025-12-18 13:31:44 -0800
commit93067110f6bf969776a553ddbefe6a734504f7d6 (patch)
tree0d2d421527c4cb8516d994ec5978195b55fdc234 /include
parent7cae156176b03d79ef05f3fefae5b60844e0fdf7 (diff)
Use consistent s32/u32 (#2964)
* cleanup long usage * fix regression
Diffstat (limited to 'include')
-rw-r--r--include/JSystem/JAudio2/JASCalc.h2
-rw-r--r--include/JSystem/JAudio2/JASCallback.h2
-rw-r--r--include/JSystem/JAudio2/JASProbe.h2
-rw-r--r--include/JSystem/JAudio2/JASWaveArcLoader.h2
-rw-r--r--include/JSystem/JGadget/define.h8
-rw-r--r--include/JSystem/JGadget/linklist.h4
-rw-r--r--include/JSystem/JUtility/JUTException.h2
-rw-r--r--include/SSystem/SComponent/c_lib.h4
-rw-r--r--include/d/d_msg_object.h2
9 files changed, 14 insertions, 14 deletions
diff --git a/include/JSystem/JAudio2/JASCalc.h b/include/JSystem/JAudio2/JASCalc.h
index 7c267268f4..d72e16d408 100644
--- a/include/JSystem/JAudio2/JASCalc.h
+++ b/include/JSystem/JAudio2/JASCalc.h
@@ -36,7 +36,7 @@ struct JASCalc {
}
f32 fake1();
- f32 fake2(long x);
+ f32 fake2(s32 x);
f32 fake3();
static const s16 CUTOFF_TO_IIR_TABLE[128][4];
diff --git a/include/JSystem/JAudio2/JASCallback.h b/include/JSystem/JAudio2/JASCallback.h
index 5aa3267d9d..0c9fb517a2 100644
--- a/include/JSystem/JAudio2/JASCallback.h
+++ b/include/JSystem/JAudio2/JASCallback.h
@@ -3,7 +3,7 @@
#include "dolphin/types.h"
-typedef long JASCallback(void*);
+typedef s32 JASCallback(void*);
/**
* @ingroup jsystem-jaudio
diff --git a/include/JSystem/JAudio2/JASProbe.h b/include/JSystem/JAudio2/JASProbe.h
index ea26f85ef8..3f4ab89d61 100644
--- a/include/JSystem/JAudio2/JASProbe.h
+++ b/include/JSystem/JAudio2/JASProbe.h
@@ -16,7 +16,7 @@ struct JASProbe {
static JASProbe* sProbeTable[16];
/* 0x000 */ char const* mName;
- /* 0x004 */ long mStartTime;
+ /* 0x004 */ s32 mStartTime;
/* 0x008 */ f32 _08;
/* 0x00C */ f32 _0C;
/* 0x010 */ f32 _10;
diff --git a/include/JSystem/JAudio2/JASWaveArcLoader.h b/include/JSystem/JAudio2/JASWaveArcLoader.h
index 42b94790b3..a3e930ebf1 100644
--- a/include/JSystem/JAudio2/JASWaveArcLoader.h
+++ b/include/JSystem/JAudio2/JASWaveArcLoader.h
@@ -58,7 +58,7 @@ struct JASWaveArc : JASDisposer {
struct loadToAramCallbackParams {
// not official struct name
/* 0x0 */ JASWaveArc* mWavArc;
- /* 0x4 */ long mEntryNum;
+ /* 0x4 */ s32 mEntryNum;
/* 0x8 */ u32 mBase;
/* 0xC */ u32 _c;
};
diff --git a/include/JSystem/JGadget/define.h b/include/JSystem/JGadget/define.h
index 93ba872ad6..c64d61c33e 100644
--- a/include/JSystem/JGadget/define.h
+++ b/include/JSystem/JGadget/define.h
@@ -15,14 +15,14 @@ public:
JGadget_outMessage(MessageFunc fn, const char* file, int line);
~JGadget_outMessage();
- JGadget_outMessage& operator<<(int param_1) { return *this << (signed long)param_1; }
+ JGadget_outMessage& operator<<(int param_1) { return *this << (s32)param_1; }
JGadget_outMessage& operator<<(u16);
- JGadget_outMessage& operator<<(unsigned int);
+ JGadget_outMessage& operator<<(uint);
JGadget_outMessage& operator<<(u8 param_1) { return *this << (char)param_1; }
JGadget_outMessage& operator<<(const char* str);
JGadget_outMessage& operator<<(char);
- JGadget_outMessage& operator<<(signed long);
- JGadget_outMessage& operator<<(unsigned long);
+ JGadget_outMessage& operator<<(s32);
+ JGadget_outMessage& operator<<(u32);
JGadget_outMessage& operator<<(const void*);
private:
diff --git a/include/JSystem/JGadget/linklist.h b/include/JSystem/JGadget/linklist.h
index 1d5d46a804..da51a35060 100644
--- a/include/JSystem/JGadget/linklist.h
+++ b/include/JSystem/JGadget/linklist.h
@@ -128,8 +128,8 @@ struct TLinkList : TNodeLinkList {
iterator& operator=(const iterator& rhs) {
//TODO: Probably fakematch? Not sure what's going on here exactly
- (TIterator<std::bidirectional_iterator_tag, T, long, T*, T&>&)*this =
- (const TIterator<std::bidirectional_iterator_tag, T, long, T*, T&>&)rhs;
+ (TIterator<std::bidirectional_iterator_tag, T, s32, T*, T&>&)*this =
+ (const TIterator<std::bidirectional_iterator_tag, T, s32, T*, T&>&)rhs;
this->node = rhs.node;
return *this;
}
diff --git a/include/JSystem/JUtility/JUTException.h b/include/JSystem/JUtility/JUTException.h
index dc6ef1ac4d..923349a089 100644
--- a/include/JSystem/JUtility/JUTException.h
+++ b/include/JSystem/JUtility/JUTException.h
@@ -152,7 +152,7 @@ STATIC_ASSERT(sizeof(JUTException) == 0xA4);
*/
struct JUTWarn {
JUTWarn& operator<<(const char*) { return *this; }
- JUTWarn& operator<<(long) { return *this; }
+ JUTWarn& operator<<(s32) { return *this; }
};
#endif /* JUTEXCEPTION_H */
diff --git a/include/SSystem/SComponent/c_lib.h b/include/SSystem/SComponent/c_lib.h
index a93ba51aa5..48cf3c71df 100644
--- a/include/SSystem/SComponent/c_lib.h
+++ b/include/SSystem/SComponent/c_lib.h
@@ -9,8 +9,8 @@ inline bool cLib_IsZero(f32 value) {
return fabsf(value) < 8e-11f;
}
-void cLib_memCpy(void* dst, const void* src, unsigned long size);
-void cLib_memSet(void* ptr, int value, unsigned long size);
+void cLib_memCpy(void* dst, const void* src, u32 size);
+void cLib_memSet(void* ptr, int value, u32 size);
f32 cLib_addCalc(f32* o_value, f32 target, f32 scale, f32 maxStep, f32 minStep);
void cLib_addCalc2(f32* o_value, f32 target, f32 scale, f32 maxStep);
diff --git a/include/d/d_msg_object.h b/include/d/d_msg_object.h
index 133b9f88ab..2c3c781b5f 100644
--- a/include/d/d_msg_object.h
+++ b/include/d/d_msg_object.h
@@ -411,7 +411,7 @@ inline void dMsgObject_setShopWaitTimer(u8 timer) {
dMsgObject_c::setShopWaitTimer(timer);
}
-inline void dMsgObject_changeFlowGroup(long flow) {
+inline void dMsgObject_changeFlowGroup(s32 flow) {
dMsgObject_getMsgObjectClass()->changeFlowGroup(flow);
}