Index: third_party/freetype/src/pshinter/pshglob.c |
diff --git a/third_party/freetype/src/pshinter/pshglob.c b/third_party/freetype/src/pshinter/pshglob.c |
index 1bcc481b9b97e6b2d8f6ce2f416d9dbf9f99e6ca..4616bdc6cf35abc7b6a4b130e8b86dec284ab8ad 100644 |
--- a/third_party/freetype/src/pshinter/pshglob.c |
+++ b/third_party/freetype/src/pshinter/pshglob.c |
@@ -5,7 +5,7 @@ |
/* PostScript hinter global hinting management (body). */ |
/* Inspired by the new auto-hinter module. */ |
/* */ |
-/* Copyright 2001-2004, 2006, 2010, 2012-2014 by */ |
+/* Copyright 2001-2015 by */ |
/* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
/* */ |
/* This file is part of the FreeType project, and may only be used */ |
@@ -23,7 +23,7 @@ |
#include "pshglob.h" |
#ifdef DEBUG_HINTER |
- PSH_Globals ps_debug_globals = 0; |
+ PSH_Globals ps_debug_globals = NULL; |
#endif |
@@ -240,7 +240,7 @@ |
FT_Int family ) |
{ |
PSH_Blue_Table top_table, bot_table; |
- FT_Int count_top, count_bot; |
+ FT_UInt count_top, count_bot; |
if ( family ) |
@@ -339,7 +339,7 @@ |
bot = zone[1].org_bottom; |
delta = bot - top; |
- if ( delta < 2 * fuzz ) |
+ if ( delta / 2 < fuzz ) |
zone[0].org_top = zone[1].org_bottom = top + delta / 2; |
else |
{ |
@@ -369,7 +369,7 @@ |
{ |
FT_UInt count; |
FT_UInt num; |
- PSH_Blue_Table table = 0; |
+ PSH_Blue_Table table = NULL; |
/* */ |
/* Determine whether we need to suppress overshoots or */ |
@@ -635,7 +635,7 @@ |
FT_FREE( globals ); |
#ifdef DEBUG_HINTER |
- ps_debug_globals = 0; |
+ ps_debug_globals = NULL; |
#endif |
} |
} |