summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-28 15:59:08 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-28 16:05:07 +0200
commit0e53dd642c44a613fdc1fa683ea373516e67c983 (patch)
treed3487cf419097a504dc884ddeb937bf9eca70c24 /platform/windows
parent14e1f36e614686f3fea0c74fac3624d1027dd5cc (diff)
Fix MSVC warning C4706: assignment within conditional expression
Part of #66537.
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/godot_windows.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/windows/godot_windows.cpp b/platform/windows/godot_windows.cpp
index 72920d2816..13602f7cbc 100644
--- a/platform/windows/godot_windows.cpp
+++ b/platform/windows/godot_windows.cpp
@@ -87,7 +87,8 @@ CommandLineToArgvA(
i = 0;
j = 0;
- while ((a = CmdLine[i])) {
+ a = CmdLine[i];
+ while (a) {
if (in_QM) {
if (a == '\"') {
in_QM = FALSE;
@@ -130,6 +131,7 @@ CommandLineToArgvA(
}
}
i++;
+ a = CmdLine[i];
}
_argv[j] = '\0';
argv[argc] = nullptr;