mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-18 15:30:43 +02:00
Boilerplate/Win32: Fix infinite loop
../cairo/boilerplate/cairo-boilerplate-win32.c:128:28: warning: comparison is always true due to limited range of data type [-Wtype-limits]
128 | for (BYTE i = 0; i <= 255; i++) {
| ^~
This commit is contained in:
parent
542ad4a959
commit
181e71d013
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ _cairo_boilerplate_win32_create_ddb_surface (const char *name,
|
|||
if (pixel_bits <= 8) {
|
||||
assert (pixel_bits == 8);
|
||||
|
||||
for (BYTE i = 0; i <= 255; i++) {
|
||||
for (int i = 0; i < 256; i++) {
|
||||
bitmap_desc.color_table[i].rgbBlue = i;
|
||||
bitmap_desc.color_table[i].rgbGreen = i;
|
||||
bitmap_desc.color_table[i].rgbRed = i;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue