Skip to content

Commit e3a9696

Browse files
committed
fix warning
1 parent 48a89ec commit e3a9696

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

include/__locale

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -444,16 +444,16 @@ public:
444444
#elif defined(_NEWLIB_VERSION)
445445
// Same type as Newlib's _ctype_ array in newlib/libc/include/ctype.h.
446446
typedef char mask;
447-
static const mask space = _S;
448-
static const mask print = _P | _U | _L | _N | _B;
449-
static const mask cntrl = _C;
450-
static const mask upper = _U;
451-
static const mask lower = _L;
452-
static const mask alpha = _U | _L;
453-
static const mask digit = _N;
454-
static const mask punct = _P;
455-
static const mask xdigit = _X | _N;
456-
static const mask blank = _B;
447+
static const mask space = static_cast<mask>(_S);
448+
static const mask print = static_cast<mask>(_P | _U | _L | _N | _B);
449+
static const mask cntrl = static_cast<mask>(_C);
450+
static const mask upper = static_cast<mask>(_U);
451+
static const mask lower = static_cast<mask>(_L);
452+
static const mask alpha = static_cast<mask>(_U | _L);
453+
static const mask digit = static_cast<mask>(_N);
454+
static const mask punct = static_cast<mask>(_P);
455+
static const mask xdigit = static_cast<mask>(_X | _N);
456+
static const mask blank = static_cast<mask>(_B);
457457
# define _LIBCPP_CTYPE_MASK_IS_COMPOSITE_PRINT
458458
# define _LIBCPP_CTYPE_MASK_IS_COMPOSITE_ALPHA
459459
# define _LIBCPP_CTYPE_MASK_IS_COMPOSITE_XDIGIT

0 commit comments

Comments
 (0)