[libc-commits] [libc] [libc][obvious] Changed incorrect type (PR #143780)

via libc-commits libc-commits at lists.llvm.org
Wed Jun 11 13:20:05 PDT 2025


https://github.com/sribee8 created https://github.com/llvm/llvm-project/pull/143780

After changing mbstate_t to mbstate we forgot to change the character_converter files to reflect it.

>From b77c5b61b12a5d2446a051b8f0ed6afa65ee8a94 Mon Sep 17 00:00:00 2001
From: Sriya Pratipati <sriyap at google.com>
Date: Wed, 11 Jun 2025 20:18:09 +0000
Subject: [PATCH] [libc][obvious] Changed incorrect type

After changing mbstate_t to mbstate we forgot to change the character_converter files to reflect it.
---
 libc/src/__support/wchar/character_converter.cpp | 2 +-
 libc/src/__support/wchar/character_converter.h   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libc/src/__support/wchar/character_converter.cpp b/libc/src/__support/wchar/character_converter.cpp
index 0afc2a6f59e64..3cdb8ca83b7f0 100644
--- a/libc/src/__support/wchar/character_converter.cpp
+++ b/libc/src/__support/wchar/character_converter.cpp
@@ -16,7 +16,7 @@
 namespace LIBC_NAMESPACE_DECL {
 namespace internal {
 
-CharacterConverter::CharacterConverter(mbstate_t *mbstate) { state = mbstate; }
+CharacterConverter::CharacterConverter(mbstate *mbstate) { state = mbstate; }
 
 bool CharacterConverter::isComplete() {}
 
diff --git a/libc/src/__support/wchar/character_converter.h b/libc/src/__support/wchar/character_converter.h
index a6bac43805376..d0602d2defe22 100644
--- a/libc/src/__support/wchar/character_converter.h
+++ b/libc/src/__support/wchar/character_converter.h
@@ -19,10 +19,10 @@ namespace internal {
 
 class CharacterConverter {
 private:
-  mbstate_t *state;
+  mbstate *state;
 
 public:
-  CharacterConverter(mbstate_t *mbstate);
+  CharacterConverter(mbstate *mbstate);
 
   bool isComplete();
 



More information about the libc-commits mailing list