aboutsummaryrefslogtreecommitdiff
path: root/src/platform/windows/win_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/windows/win_thread.c')
-rw-r--r--src/platform/windows/win_thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platform/windows/win_thread.c b/src/platform/windows/win_thread.c
index dc9ed12a..9c7c09d3 100644
--- a/src/platform/windows/win_thread.c
+++ b/src/platform/windows/win_thread.c
@@ -381,7 +381,8 @@ nni_plat_thr_set_name(nni_plat_thr *thr, const char *name)
if ((wcs = nni_alloc(len * 2)) == NULL) {
return;
}
- (void) MultiByteToWideChar(CP_UTF8, 0, name, len, wcs, len);
+ (void) MultiByteToWideChar(
+ CP_UTF8, 0, name, (int) len, wcs, (int) len);
set_thread_desc(h, wcs);
nni_free(wcs, len * 2);
}