diff options
| author | Daniel Colascione | 2014-04-03 00:14:02 -0700 |
|---|---|---|
| committer | Daniel Colascione | 2014-04-03 00:14:02 -0700 |
| commit | 705cf384bec23354ad22a5c48d3430a96ef70ca1 (patch) | |
| tree | 1615876bc7abad32f5e41ea34c5cd1747466798a /src/image.c | |
| parent | 3a9e7a49deea49088a773c321e52185e922748d6 (diff) | |
| download | emacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.tar.gz emacs-705cf384bec23354ad22a5c48d3430a96ef70ca1.zip | |
Clean up array size calculations
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/image.c b/src/image.c index 29a04e7da81..64bd41b52ab 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -3955,9 +3955,7 @@ xpm_str_to_color_key (const char *s) | |||
| 3955 | { | 3955 | { |
| 3956 | int i; | 3956 | int i; |
| 3957 | 3957 | ||
| 3958 | for (i = 0; | 3958 | for (i = 0; i < EARRAYSIZE (xpm_color_key_strings); i++) |
| 3959 | i < sizeof xpm_color_key_strings / sizeof xpm_color_key_strings[0]; | ||
| 3960 | i++) | ||
| 3961 | if (strcmp (xpm_color_key_strings[i], s) == 0) | 3959 | if (strcmp (xpm_color_key_strings[i], s) == 0) |
| 3962 | return i; | 3960 | return i; |
| 3963 | return -1; | 3961 | return -1; |