Skip to content

Commit 8150b0d

Browse files
plaesKaffeine
authored andcommitted
xrCore/_color.h: Fixed compiler warning about bitwise ops usage.
1 parent be47ce0 commit 8150b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrCore/_color.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ICF u32 color_get_R(u32 rgba) { return (((rgba) >> 16) & 0xff); }
1818
ICF u32 color_get_G(u32 rgba) { return (((rgba) >> 8) & 0xff); }
1919
ICF u32 color_get_B(u32 rgba) { return ((rgba)& 0xff); }
2020
ICF u32 color_get_A(u32 rgba) { return ((rgba) >> 24); }
21-
ICF u32 subst_alpha(u32 rgba, u32 a) { return rgba&~color_rgba(0, 0, 0, 0xff) | color_rgba(0, 0, 0, a); }
21+
ICF u32 subst_alpha(u32 rgba, u32 a) { return (rgba & ~color_rgba(0, 0, 0, 0xff)) | color_rgba(0, 0, 0, a); }
2222
ICF u32 bgr2rgb(u32 bgr) { return color_rgba(color_get_B(bgr), color_get_G(bgr), color_get_R(bgr), 0); }
2323
ICF u32 rgb2bgr(u32 rgb) { return bgr2rgb(rgb); }
2424

0 commit comments

Comments
 (0)