summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-03-02 14:20:20 +0330
committerBehdad Esfahbod <behdad@behdad.org>2009-03-02 14:20:20 +0330
commitcaaa5d09e10d4fe01ef986c9a95826c3cbb13cfa (patch)
tree139d951128870e88ec7c56b6bc7f59b0d026a8af
parent4de30e5500eaeb49f4bf0b7a07f718e149a2ed5e (diff)
downloadpango-caaa5d09e10d4fe01ef986c9a95826c3cbb13cfa.tar.gz
[opentype] Use size_t instead of uint for malloc wrappers
-rw-r--r--pango/opentype/harfbuzz-impl.c4
-rw-r--r--pango/opentype/harfbuzz-impl.h6
2 files changed, 6 insertions, 4 deletions
diff --git a/pango/opentype/harfbuzz-impl.c b/pango/opentype/harfbuzz-impl.c
index a3a55895..ffcef806 100644
--- a/pango/opentype/harfbuzz-impl.c
+++ b/pango/opentype/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/pango/opentype/harfbuzz-impl.h b/pango/opentype/harfbuzz-impl.h
index 0442e4e2..f886e676 100644
--- a/pango/opentype/harfbuzz-impl.h
+++ b/pango/opentype/harfbuzz-impl.h
@@ -32,6 +32,8 @@
#include "harfbuzz-global.h"
+#include <stdlib.h>
+
HB_BEGIN_HEADER
#ifndef HB_INTERNAL
@@ -95,12 +97,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