summaryrefslogtreecommitdiff
path: root/src/cairo-arc.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2007-03-20 18:59:19 -0400
committerBehdad Esfahbod <behdad@behdad.org>2007-03-20 18:59:19 -0400
commitad51ee5aa0d1fc03c4ebe7f0454949995420a710 (patch)
tree0af79a22221a6b32e8144d7aaa87c9b9f5b8c461 /src/cairo-arc.c
parent1de12714a9623e66309279eb9edaf6053fd92c56 (diff)
Define and use ARRAY_LEN
Diffstat (limited to 'src/cairo-arc.c')
-rw-r--r--src/cairo-arc.c2
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)