aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/win_dbghelp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/win_dbghelp.cpp b/tools/win_dbghelp.cpp
index ebdbaefcfa..57389b430d 100644
--- a/tools/win_dbghelp.cpp
+++ b/tools/win_dbghelp.cpp
@@ -209,14 +209,14 @@ void setUpDebuggingFromArgs(const char* vargs0) {
i -= 4;
}
- int pos_period = i;
+ size_t pos_period = i;
// Find last \ in path - this is Windows!
while (i >= 0 && vargs0[i] != '\\') {
i--;
}
- int pos_last_slash = i;
+ size_t pos_last_slash = i;
char app_name[MAX_PATH];
strncpy(app_name, vargs0 + pos_last_slash + 1, pos_period - pos_last_slash - 1);