[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Mon Mar 2 02:54:44 PST 2009


 src/harfbuzz-impl.c |    4 ++--
 src/harfbuzz-impl.h |    6 ++++--
 2 files changed, 6 insertions(+), 4 deletions(-)

New commits:
commit 406c6f9a872b831abef234530ddfb071df65ce49
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Mon Mar 2 14:24:22 2009 +0330

    Use size_t instead of uint for malloc wrapper size argument

diff --git a/src/harfbuzz-impl.c b/src/harfbuzz-impl.c
index 96859cb..9056a55 100644
--- a/src/harfbuzz-impl.c
+++ b/src/harfbuzz-impl.c
@@ -30,7 +30,7 @@
 
 
 HB_INTERNAL HB_Pointer
-_hb_alloc(HB_UInt   size,
+_hb_alloc(size_t     size,
 	  HB_Error  *perror )
 {
   HB_Error    error = 0;
@@ -50,7 +50,7 @@ _hb_alloc(HB_UInt   size,
 
 HB_INTERNAL HB_Pointer
 _hb_realloc(HB_Pointer  block,
-	    HB_UInt    new_size,
+	    size_t      new_size,
 	    HB_Error   *perror )
 {
     HB_Pointer  block2 = NULL;
diff --git a/src/harfbuzz-impl.h b/src/harfbuzz-impl.h
index c248584..5f43049 100644
--- a/src/harfbuzz-impl.h
+++ b/src/harfbuzz-impl.h
@@ -28,6 +28,8 @@
 
 #include "harfbuzz-global.h"
 
+#include <stdlib.h>
+
 HB_BEGIN_HEADER
 
 #ifndef HB_INTERNAL
@@ -107,12 +109,12 @@ HB_BEGIN_HEADER
 
 
 HB_INTERNAL HB_Pointer
-_hb_alloc( HB_UInt   size,
+_hb_alloc( size_t    size,
 	   HB_Error *perror_ );
 
 HB_INTERNAL HB_Pointer
 _hb_realloc( HB_Pointer block,
-	     HB_UInt    new_size,
+	     size_t     new_size,
 	     HB_Error  *perror_ );
 
 HB_INTERNAL void



More information about the HarfBuzz mailing list