* src/smooth/ftgrays.c (gray_set_cell): Refactor to fix VC++ warning.
This commit is contained in:
parent
2149b51f25
commit
fb9bf2efae
|
@ -1,3 +1,7 @@
|
||||||
|
2021-03-11 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||||
|
|
||||||
|
* src/smooth/ftgrays.c (gray_set_cell): Refactor to fix VC++ warning.
|
||||||
|
|
||||||
2021-03-13 Werner Lemberg <wl@gnu.org>
|
2021-03-13 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
Handle various VC++ compiler warnings.
|
Handle various VC++ compiler warnings.
|
||||||
|
|
|
@ -540,15 +540,17 @@ typedef ptrdiff_t FT_PtrDist;
|
||||||
ras.cell = NULL;
|
ras.cell = NULL;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PCell *pcell, cell;
|
PCell* pcell = ras.ycells + ey - ras.min_ey;
|
||||||
|
PCell cell;
|
||||||
|
|
||||||
|
|
||||||
ex = FT_MAX( ex, ras.min_ex - 1 );
|
ex = FT_MAX( ex, ras.min_ex - 1 );
|
||||||
|
|
||||||
pcell = &ras.ycells[ey - ras.min_ey];
|
while ( 1 )
|
||||||
while ( ( cell = *pcell ) )
|
|
||||||
{
|
{
|
||||||
if ( cell->x > ex )
|
cell = *pcell;
|
||||||
|
|
||||||
|
if ( !cell || cell->x > ex )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if ( cell->x == ex )
|
if ( cell->x == ex )
|
||||||
|
|
Loading…
Reference in New Issue