Skip to content

Commit a3afda9

Browse files
committed
tests: trace: fix parameter type of aux callback
The function `git_win32__stack__set_aux_cb` expects the second parameter to be a function callback of type `git_win32__stack__aux_cb_lookup`, which expects a `size_t` parameter. In our test suite trace::windows::stacktrace, we declare the callback with `unsigned int` as parameter, though, causing a compiler warning. Correct the parameter type to silence the warning.
1 parent 2f14c4f commit a3afda9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/trace/windows/stacktrace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static void aux_cb_alloc__1(unsigned int *aux_id)
132132
*aux_id = aux_counter++;
133133
}
134134

135-
static void aux_cb_lookup__1(unsigned int aux_id, char *aux_msg, unsigned int aux_msg_len)
135+
static void aux_cb_lookup__1(unsigned int aux_id, char *aux_msg, size_t aux_msg_len)
136136
{
137137
p_snprintf(aux_msg, aux_msg_len, "\tQQ%08x\n", aux_id);
138138
}

0 commit comments

Comments
 (0)