From 5b570e9c35cb5808ca99b455a30c84c93cc59e51 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 19 Dec 2019 13:37:45 -0800 Subject: [PATCH] dfa: fast->small for array elements * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t, since this type is used in arrays. This change is more for documentation than for any practical effect, since the two types are the same on all known platforms. --- ChangeLog | 8 ++++++++ lib/dfa.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1380be3754..6d0120331c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2019-12-19 Paul Eggert + + dfa: fast->small for array elements + * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t, + since this type is used in arrays. This change is more for + documentation than for any practical effect, since the two types + are the same on all known platforms. + 2019-12-19 Bruno Haible iconv tests: Test canonicalized, not system-dependent, encoding names. diff --git a/lib/dfa.c b/lib/dfa.c index 8d3e01c2e6..a7cd3e84fb 100644 --- a/lib/dfa.c +++ b/lib/dfa.c @@ -87,7 +87,7 @@ enum { CHARCLASS_WORD_BITS = 64 }; /* This represents part of a character class. It must be unsigned and at least CHARCLASS_WORD_BITS wide. Any excess bits are zero. */ -typedef uint_fast64_t charclass_word; +typedef uint_least64_t charclass_word; /* An initializer for a charclass whose 64-bit words are A through D. */ #define CHARCLASS_INIT(a, b, c, d) {{a, b, c, d}} -- 2.39.5