Skip to content

Commit f48cf5b

Browse files
committed
w32_stack: treat a len as an size_t
1 parent 6b22405 commit f48cf5b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/win32/w32_stack.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ int git_win32__stack_format(
9191
} s;
9292

9393
IMAGEHLP_LINE64 line;
94-
int buf_used = 0;
94+
size_t buf_used = 0;
9595
unsigned int k;
9696
char detail[MY_MAX_FILENAME * 2]; /* filename plus space for function name and formatting */
97-
int detail_len;
97+
size_t detail_len;
9898

9999
if (!g_win32_stack_initialized) {
100100
git_error_set(GIT_ERROR_INVALID, "git_win32_stack not initialized.");

src/win32/w32_stack.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ typedef void (*git_win32__stack__aux_cb_alloc)(unsigned int *aux_id);
3838
* @param aux_msg A buffer where a formatted message should be written.
3939
* @param aux_msg_len The size of the buffer.
4040
*/
41-
typedef void (*git_win32__stack__aux_cb_lookup)(unsigned int aux_id, char *aux_msg, unsigned int aux_msg_len);
41+
typedef void (*git_win32__stack__aux_cb_lookup)(unsigned int aux_id, char *aux_msg, size_t aux_msg_len);
4242

4343
/**
4444
* Register an "aux" data provider to augment our C stacktrace data.

0 commit comments

Comments
 (0)