]> Savannah Git Hosting - gnulib.git/commitdiff
dfa: fast->small for array elements
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 19 Dec 2019 21:37:45 +0000 (13:37 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 20 Dec 2019 03:20:52 +0000 (19:20 -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
lib/dfa.c

index 1380be37544965a92e2366ebe7e7deb780accd0a..6d0120331c930802f4eb1ee733370381f938f619 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <bruno@clisp.org>
 
        iconv tests: Test canonicalized, not system-dependent, encoding names.
index 8d3e01c2e6c4d073f27f1f9d8ae344f44aa96a6a..a7cd3e84fbd8fe9cee11fe8f2f326978836ec0a2 100644 (file)
--- 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}}