From cd0841b54a0fc45843b111745c13f5bdee347737 Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Fri, 12 Jun 2015 12:36:23 +0300 Subject: [PATCH] Make div255 to compile on gcc --- src/nanosvgrast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanosvgrast.h b/src/nanosvgrast.h index 981ec2e..553e5bf 100644 --- a/src/nanosvgrast.h +++ b/src/nanosvgrast.h @@ -859,7 +859,7 @@ static unsigned int nsvg__applyOpacity(unsigned int c, float u) return nsvg__RGBA(r,g,b,a); } -inline int nsvg__div255(int x) +static inline int nsvg__div255(int x) { return ((x+1) * 257) >> 16; }