diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-03-20 18:59:19 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-03-20 18:59:19 -0400 |
commit | ad51ee5aa0d1fc03c4ebe7f0454949995420a710 (patch) | |
tree | 0af79a22221a6b32e8144d7aaa87c9b9f5b8c461 /src/cairo-arc.c | |
parent | 1de12714a9623e66309279eb9edaf6053fd92c56 (diff) |
Define and use ARRAY_LEN
Diffstat (limited to 'src/cairo-arc.c')
-rw-r--r-- | src/cairo-arc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-arc.c b/src/cairo-arc.c index 2bf6c89f..7b2789da 100644 --- a/src/cairo-arc.c +++ b/src/cairo-arc.c @@ -85,7 +85,7 @@ _arc_max_angle_for_tolerance_normalized (double tolerance) { M_PI / 10.0, 1.73863223499021216974e-08 }, { M_PI / 11.0, 9.81410988043554039085e-09 }, }; - int table_size = (sizeof (table) / sizeof (table[0])); + int table_size = ARRAY_LEN (table); for (i = 0; i < table_size; i++) if (table[i].error < tolerance) |