diff options
author | Daniel Colascione <dancol@dancol.org> | 2014-04-03 00:14:02 -0700 |
---|---|---|
committer | Daniel Colascione <dancol@dancol.org> | 2014-04-03 00:14:02 -0700 |
commit | 705cf384bec23354ad22a5c48d3430a96ef70ca1 (patch) | |
tree | 1615876bc7abad32f5e41ea34c5cd1747466798a /src/chartab.c | |
parent | 3a9e7a49deea49088a773c321e52185e922748d6 (diff) | |
download | emacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.tar.gz emacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.tar.bz2 emacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.zip |
Clean up array size calculations
Diffstat (limited to 'src/chartab.c')
-rw-r--r-- | src/chartab.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/chartab.c b/src/chartab.c index 2a8bbc6983a..56a6f548749 100644 --- a/src/chartab.c +++ b/src/chartab.c @@ -1221,9 +1221,7 @@ uniprop_decode_value_run_length (Lisp_Object table, Lisp_Object value) static uniprop_decoder_t uniprop_decoder [] = { uniprop_decode_value_run_length }; -static int uniprop_decoder_count - = (sizeof uniprop_decoder) / sizeof (uniprop_decoder[0]); - +static const int uniprop_decoder_count = EARRAYSIZE (uniprop_decoder); /* Return the decoder of char-table TABLE or nil if none. */ @@ -1301,9 +1299,7 @@ static uniprop_encoder_t uniprop_encoder[] = uniprop_encode_value_run_length, uniprop_encode_value_numeric }; -static int uniprop_encoder_count - = (sizeof uniprop_encoder) / sizeof (uniprop_encoder[0]); - +static const int uniprop_encoder_count = EARRAYSIZE (uniprop_encoder); /* Return the encoder of char-table TABLE or nil if none. */ |