summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-24 17:48:49 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-24 17:48:49 +0200
commitf3195bfceeb550f797f221356cfb4b12c6b11ae9 (patch)
tree37014575a260218f99675a102b81e97cc48cd3db
parente78dc83ee8fc327a4586db0dde576bbefc2b2f8d (diff)
parent2e846381479b5eaa7deb893087eb177bb83a494e (diff)
downloadredot-engine-f3195bfceeb550f797f221356cfb4b12c6b11ae9.tar.gz
Merge pull request #93491 from patwork/fix-type-limits-windows-utils
Fix type-limits warning in `windows_utils`
-rw-r--r--platform/windows/windows_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/windows_utils.cpp b/platform/windows/windows_utils.cpp
index 9b53252b07..9e0b9eed8a 100644
--- a/platform/windows/windows_utils.cpp
+++ b/platform/windows/windows_utils.cpp
@@ -220,7 +220,7 @@ Error WindowsUtils::copy_and_rename_pdb(const String &p_dll_path) {
int original_path_size = pdb_info.path.utf8().length();
// Double-check file bounds.
- ERR_FAIL_INDEX_V_MSG(pdb_info.address + original_path_size, file->get_length(), FAILED, vformat("Failed to write a new PDB path. Probably '%s' has been changed.", p_dll_path));
+ ERR_FAIL_UNSIGNED_INDEX_V_MSG(pdb_info.address + original_path_size, file->get_length(), FAILED, vformat("Failed to write a new PDB path. Probably '%s' has been changed.", p_dll_path));
Vector<uint8_t> u8 = new_pdb_name.to_utf8_buffer();
file->seek(pdb_info.address);