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

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


Author: sribee8
Date: 2025-06-11T13:28:55-07:00
New Revision: 79108da325daec08f5b50169a9c35e03ea0645a3

URL: https://github.com/llvm/llvm-project/commit/79108da325daec08f5b50169a9c35e03ea0645a3
DIFF: https://github.com/llvm/llvm-project/commit/79108da325daec08f5b50169a9c35e03ea0645a3.diff

LOG: [libc][obvious] Changed incorrect type (#143780)

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

Co-authored-by: Sriya Pratipati <sriyap at google.com>

Added: 
    

Modified: 
    libc/src/__support/wchar/character_converter.cpp
    libc/src/__support/wchar/character_converter.h

Removed: 
    


################################################################################
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