Commit c799dd67259fbb0c194e2665d68d2585dd074bf4

Behdad Esfahbod 2013-08-27T21:46:03

* src/sfnt/ttload.c (tt_face_load_font_dir): Fix sign typos.

diff --git a/ChangeLog b/ChangeLog
index 399db54..eb1a97d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2013-08-27  Behdad Esfahbod  <behdad@google.com>
 
+	* src/sfnt/ttload.c (tt_face_load_font_dir): Fix sign typos.
+
+2013-08-27  Behdad Esfahbod  <behdad@google.com>
+
 	FT_Open_Face: Improve external stream handling.
 
 	If the font's `clazz->init_face' function wants to swap to new
diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c
index 89a8ae0..e6b9064 100644
--- a/src/sfnt/ttload.c
+++ b/src/sfnt/ttload.c
@@ -391,8 +391,8 @@
     {
       entry->Tag      = FT_GET_TAG4();
       entry->CheckSum = FT_GET_ULONG();
-      entry->Offset   = FT_GET_LONG();
-      entry->Length   = FT_GET_LONG();
+      entry->Offset   = FT_GET_ULONG();
+      entry->Length   = FT_GET_ULONG();
 
       /* ignore invalid tables */
       if ( entry->Offset + entry->Length > stream->size )