mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Use constexpr in the conditions with template parameters and sizeofs to suppress C4127 warnings.
This commit is contained in:
@@ -548,7 +548,7 @@ void FileAccess::store_64(uint64_t p_dest) {
|
||||
}
|
||||
|
||||
void FileAccess::store_real(real_t p_real) {
|
||||
if (sizeof(real_t) == 4) {
|
||||
if constexpr (sizeof(real_t) == 4) {
|
||||
store_float(p_real);
|
||||
} else {
|
||||
store_double(p_real);
|
||||
|
||||
Reference in New Issue
Block a user