Skip to content

Commit 6d7fb95

Browse files
committed
lib: os: cbprintf: Use wchar_t instead of wint_t
Fixed compilation issues with wint_t by replacing it with wchar_t. Signed-off-by: Krzysztof Chruscinski <[email protected]>
1 parent 90e8f01 commit 6d7fb95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/os/cbprintf_complete.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ static void pack_conversion(struct package_state *pst)
17691769
break;
17701770
case LENGTH_L:
17711771
if (conv->specifier == 'c' ) {
1772-
PACK_CAST_VALUE(pst, value->uint, wint_t);
1772+
PACK_CAST_VALUE(pst, value->uint, wchar_t);
17731773
} else {
17741774
PACK_CAST_VALUE(pst, value->uint,
17751775
unsigned long);
@@ -1884,7 +1884,7 @@ static void pull_pkg_args(struct cbprintf_state *state)
18841884
break;
18851885
case LENGTH_L:
18861886
if (conv->specifier == 'c') {
1887-
UNPACK_CAST_UINT_VALUE(state, wint_t);
1887+
UNPACK_CAST_UINT_VALUE(state, wchar_t);
18881888
} else {
18891889
UNPACK_CAST_UINT_VALUE(state, unsigned long);
18901890
}

0 commit comments

Comments
 (0)