diff --git a/libc/src/wchar/wcsncmp.cpp b/libc/src/wchar/wcsncmp.cpp index f2e052b3c9fe3..baca12bffb188 100644 --- a/libc/src/wchar/wcsncmp.cpp +++ b/libc/src/wchar/wcsncmp.cpp @@ -30,8 +30,7 @@ LLVM_LIBC_FUNCTION(int, wcsncmp, if (!comp(lc, '\0') || comp(lc, *right)) break; } - return comp(*reinterpret_cast(left), - *reinterpret_cast(right)); + return comp(*left, *right); } } // namespace LIBC_NAMESPACE_DECL