fixed a rather stupid bug in the last patch (one of those with

dire consequences..)
This commit is contained in:
David Turner 2000-07-08 01:18:38 +00:00
parent 1ca6f2d136
commit 52b430abea
1 changed files with 2 additions and 2 deletions

View File

@ -476,7 +476,7 @@
{ {
builder->path_begun = 1; builder->path_begun = 1;
error = add_contour( builder ); error = add_contour( builder );
if ( !error ) if ( error )
return error; return error;
} }
return add_point1( builder, x, y ); return add_point1( builder, x, y );
@ -609,7 +609,7 @@
{ {
if ( ip + 1 >= limit ) if ( ip + 1 >= limit )
goto Syntax_Error; goto Syntax_Error;
val = (FT_Int32)( ( (FT_Short)ip[0] << 8 ) | ip[1] ); val = (FT_Short)( ( (FT_Short)ip[0] << 8 ) | ip[1] );
ip += 2; ip += 2;
} }
else if ( v < 247 ) else if ( v < 247 )