Make div255 to compile on gcc

This commit is contained in:
Mikko Mononen 2015-06-12 12:36:23 +03:00
parent 1dd78511c4
commit cd0841b54a

View File

@ -859,7 +859,7 @@ static unsigned int nsvg__applyOpacity(unsigned int c, float u)
return nsvg__RGBA(r,g,b,a); 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; return ((x+1) * 257) >> 16;
} }