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

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


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: None (sribee8)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/143780.diff


2 Files Affected:

- (modified) libc/src/__support/wchar/character_converter.cpp (+1-1) 
- (modified) libc/src/__support/wchar/character_converter.h (+2-2) 


``````````diff
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();
 

``````````

</details>


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


More information about the libc-commits mailing list