Line 0
Link Here
|
|
|
1 |
--- src/fontcache.cpp.orig 2014-10-21 22:36:35.000000000 +0400 |
2 |
+++ src/fontcache.cpp 2014-12-11 05:19:50.000000000 +0300 |
3 |
@@ -527,8 +527,8 @@ |
4 |
aa = (slot->bitmap.pixel_mode == FT_PIXEL_MODE_GRAY); |
5 |
|
6 |
/* Add 1 pixel for the shadow on the medium font. Our sprite must be at least 1x1 pixel */ |
7 |
- int width = max(1, slot->bitmap.width + (this->fs == FS_NORMAL)); |
8 |
- int height = max(1, slot->bitmap.rows + (this->fs == FS_NORMAL)); |
9 |
+ unsigned int width = max(1U, slot->bitmap.width + (this->fs == FS_NORMAL)); |
10 |
+ unsigned int height = max(1U, slot->bitmap.rows + (this->fs == FS_NORMAL)); |
11 |
|
12 |
/* Limit glyph size to prevent overflows later on. */ |
13 |
if (width > 256 || height > 256) usererror("Font glyph is too large"); |