summaryrefslogtreecommitdiff
path: root/src/u8c/dattyp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/u8c/dattyp.h')
-rw-r--r--src/u8c/dattyp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/u8c/dattyp.h b/src/u8c/dattyp.h
index 1a1e830..aa61b21 100644
--- a/src/u8c/dattyp.h
+++ b/src/u8c/dattyp.h
@@ -16,6 +16,7 @@
# if !defined(u8c_sym_dattyp)
# define u8c_sym_dattyp
# include <stdbool.h>
+# include <stddef.h>
# include <stdint.h>
# include <u8c/errhandltyp.h>
# include <u8c/errtyp.h>
@@ -28,7 +29,7 @@ struct u8c_dattyp {
bool fmtendian;
unsigned char pad0[sizeof(void(*)(void)) - SIZE_C(0x1)]; /* Padding. */
char32_t const * err;
- u8c_errhandltyp errhandls[u8c_errtyp_maxerrtyp];
+ u8c_errhandltyp errhandls[(size_t)u8c_errtyp_maxerrtyp];
uint_least8_t fmtbase;
uint_least8_t stat;
# if defined(u8c_bethrdsafe)