[opentype] Use size_t instead of uint for malloc wrappers

This commit is contained in:
Behdad Esfahbod 2009-03-02 14:20:20 +03:30
parent 3664e59c52
commit 66871797af
2 changed files with 6 additions and 4 deletions

View File

@ -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;

View File

@ -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