Update main.cpp

This commit is contained in:
gggaa2152 2026-04-08 03:39:06 +08:00 committed by GitHub
parent 3460d9d8a8
commit bbb7411b83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -137,12 +137,12 @@ public:
template <typename T>
static T SafeRead(uintptr_t address) {
if (!IsValidAddress(address)) return T{};
return *reinterpret_cast<volatile T*>(address);
return *reinterpret_cast<T*>(address);
}
template <typename T>
static T FastRead(uintptr_t address) {
return *reinterpret_cast<volatile T*>(address);
return *reinterpret_cast<T*>(address);
}
};