From 154efc3e429508bf27dbd31ebe66b6e1a26b7ded Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sun, 28 May 2017 19:23:02 +0800 Subject: Make PI/RADIAN/SQRT2/LN2 global single precision float constants. --- source/fitz/shade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz/shade.c') diff --git a/source/fitz/shade.c b/source/fitz/shade.c index b7e746d7..13788472 100644 --- a/source/fitz/shade.c +++ b/source/fitz/shade.c @@ -201,7 +201,7 @@ fz_paint_annulus(fz_context *ctx, const fz_matrix *ctm, int i; theta = atan2f(p1.y - p0.y, p1.x - p0.x); - step = (float)M_PI / count; + step = FZ_PI / count; a = 0; for (i = 1; i <= count; i++) -- cgit v1.2.3