bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] dfa: fast->small for array elements


From: Paul Eggert
Subject: [PATCH 1/2] dfa: fast->small for array elements
Date: Thu, 19 Dec 2019 19:21:09 -0800

* 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 1380be375..6d0120331 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-12-19  Paul Eggert  <address@hidden>
+
+       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  <address@hidden>
 
        iconv tests: Test canonicalized, not system-dependent, encoding names.
diff --git a/lib/dfa.c b/lib/dfa.c
index 8d3e01c2e..a7cd3e84f 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.24.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]