From c3f519f67de44520ccf3f2de03813cbf029ef738 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 26 Sep 2004 01:03:19 +0000 Subject: [PATCH] fix warnings git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6268 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/common.swg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/common.swg b/Lib/common.swg index 9e1bfaf3b..22b30ac4e 100644 --- a/Lib/common.swg +++ b/Lib/common.swg @@ -249,7 +249,7 @@ SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { /* Pack binary data into a string */ SWIGRUNTIME(char *) -SWIG_PackData(char *c, void *ptr, int sz) { +SWIG_PackData(char *c, void *ptr, size_t sz) { static char hex[17] = "0123456789abcdef"; unsigned char *u = (unsigned char *) ptr; const unsigned char *eu = u + sz; @@ -264,7 +264,7 @@ SWIG_PackData(char *c, void *ptr, int sz) { /* Unpack binary data from a string */ SWIGRUNTIME(char *) -SWIG_UnpackData(char *c, void *ptr, int sz) { +SWIG_UnpackData(char *c, void *ptr, size_t sz) { register unsigned char uu = 0; register int d; unsigned char *u = (unsigned char *) ptr;