From 117fd0bf7ada734f7a64d892fdcdfc9050a00d50 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 28 Feb 2019 15:36:26 -0500 Subject: use an int for ctype attributes so we don't lose data --- src/nonstd/struct_locale_t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nonstd/struct_locale_t.c') diff --git a/src/nonstd/struct_locale_t.c b/src/nonstd/struct_locale_t.c index 5487ae6a..1bc8e932 100644 --- a/src/nonstd/struct_locale_t.c +++ b/src/nonstd/struct_locale_t.c @@ -5,7 +5,7 @@ struct __locale_t { char ctype[UCHAR_MAX]; struct { - unsigned char ctattr[UCHAR_MAX + 1]; + unsigned int ctattr[UCHAR_MAX + 1]; unsigned char ctoupper[UCHAR_MAX + 1]; unsigned char ctolower[UCHAR_MAX + 1]; } lc_ctype; -- cgit v1.2.1