Skip to content

Commit f8e7a24

Browse files
committed
[UCRT] Fix a signed/unsigned comparison
1 parent 2d753d9 commit f8e7a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/lib/ucrt/conio/cputws.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern "C" int __cdecl _cputws(wchar_t const* string)
2323
return -1;
2424

2525
// Write string to console file handle:
26-
ptrdiff_t length = wcslen(string);
26+
size_t length = wcslen(string);
2727

2828
__acrt_lock(__acrt_conio_lock);
2929

0 commit comments

Comments
 (0)