diff --git a/project/include/math/color/RGBA.h b/project/include/math/color/RGBA.h index b52830f8d..259126806 100644 --- a/project/include/math/color/RGBA.h +++ b/project/include/math/color/RGBA.h @@ -19,7 +19,7 @@ namespace lime { for (int i = 0; i < 256; i++) { - __alpha16[i] = ceil ((i + 1) * ((1 << 16) / 0xFF)); + __alpha16[i] = ceil ((float)(i + 1) * ((1 << 16) / 0xFF)); } @@ -208,4 +208,4 @@ namespace lime { } -#endif \ No newline at end of file +#endif