btrfs: fix race between quota disable and quota assign ioctls
[platform/kernel/linux-rpi.git] / lib / fonts / fonts.c
index 5f4b07b..9738664 100644 (file)
@@ -135,8 +135,8 @@ const struct font_desc *get_default_font(int xres, int yres, u32 font_w,
                if (res > 20)
                        c += 20 - res;
 
-               if ((font_w & (1 << (f->width - 1))) &&
-                   (font_h & (1 << (f->height - 1))))
+               if ((font_w & (1U << (f->width - 1))) &&
+                   (font_h & (1U << (f->height - 1))))
                        c += 1000;
 
                if (c > cc) {