[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master e93d326 2/2: [sfnt, type42] Fix clang compiler warnin
From: |
Werner LEMBERG |
Subject: |
[freetype2] master e93d326 2/2: [sfnt, type42] Fix clang compiler warnings. |
Date: |
Thu, 22 Oct 2015 09:07:31 +0000 |
branch: master
commit e93d326c8ba52ae12589844bad5badeace4c7943
Author: Werner Lemberg <address@hidden>
Commit: Werner Lemberg <address@hidden>
[sfnt, type42] Fix clang compiler warnings.
* src/sfnt/sfobjs.c (sfnt_init_face): Initialize `offset'.
* src/type42/t42parse.c (t42_parse_sfnts): Use proper cast.
---
ChangeLog | 8 ++++++++
src/sfnt/sfobjs.c | 1 +
src/type42/t42parse.c | 2 +-
3 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c4a61a1..228211b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-10-22 Werner Lemberg <address@hidden>
+
+ [sfnt, type42] Fix clang compiler warnings.
+
+ * src/sfnt/sfobjs.c (sfnt_init_face): Initialize `offset'.
+
+ * src/type42/t42parse.c (t42_parse_sfnts): Use proper cast.
+
2015-10-22 Dave Arnold <address@hidden>
Werner Lemberg <address@hidden>
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index eabe865..de030ea 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -930,6 +930,7 @@
FT_READ_USHORT( instance_size ) )
{
version = 0;
+ offset = 0;
num_axes = 0;
axis_size = 0;
num_instances = 0;
diff --git a/src/type42/t42parse.c b/src/type42/t42parse.c
index 5e352a2..04eba8e 100644
--- a/src/type42/t42parse.c
+++ b/src/type42/t42parse.c
@@ -672,7 +672,7 @@
/* The whole TTF is now loaded into `string_buf'. We are */
/* checking its contents while copying it to `ttf_data'. */
- size = limit - parser->root.cursor;
+ size = (FT_ULong)( limit - parser->root.cursor );
for ( n = 0; n < string_size; n++ )
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master e93d326 2/2: [sfnt, type42] Fix clang compiler warnings.,
Werner LEMBERG <=