Index: third_party/freetype/src/cff/cf2arrst.c |
diff --git a/third_party/freetype/src/cff/cf2arrst.c b/third_party/freetype/src/cff/cf2arrst.c |
index c8d6f13098589fe6d48d6808c60ca3a6ec5402cf..89f3e9f1d741964fc0711e22746cd11799781fe5 100644 |
--- a/third_party/freetype/src/cff/cf2arrst.c |
+++ b/third_party/freetype/src/cff/cf2arrst.c |
@@ -101,10 +101,10 @@ |
FT_Error error = FT_Err_Ok; /* for FT_REALLOC */ |
FT_Memory memory = arrstack->memory; /* for FT_REALLOC */ |
- FT_Long newSize = (FT_Long)( numElements * arrstack->sizeItem ); |
+ size_t newSize = numElements * arrstack->sizeItem; |
- if ( numElements > LONG_MAX / arrstack->sizeItem ) |
+ if ( numElements > FT_LONG_MAX / arrstack->sizeItem ) |
goto exit; |