Mercurial > audlegacy-plugins
changeset 496:f7b1b132e6ec trunk
[svn] - enforce UINT in charstack
author | nenolod |
---|---|
date | Sun, 21 Jan 2007 19:48:38 -0800 |
parents | 218ef0b740ac |
children | 1da75c7d37a3 |
files | ChangeLog src/curl/curl.c |
diffstat | 2 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Jan 21 19:46:43 2007 -0800 +++ b/ChangeLog Sun Jan 21 19:48:38 2007 -0800 @@ -1,3 +1,11 @@ +2007-01-22 03:46:43 +0000 William Pitcock <nenolod@sacredspiral.co.uk> + revision [1076] + - fix getc emulation + + trunk/src/curl/curl.c | 9 +++++---- + 1 file changed, 5 insertions(+), 4 deletions(-) + + 2007-01-22 03:36:36 +0000 William Pitcock <nenolod@sacredspiral.co.uk> revision [1074] - getc/ungetc emulation
--- a/src/curl/curl.c Sun Jan 21 19:46:43 2007 -0800 +++ b/src/curl/curl.c Sun Jan 21 19:48:38 2007 -0800 @@ -599,11 +599,9 @@ g_return_val_if_fail(handle != NULL, EOF); - g_print("curl_vfs_getc reached\n"); - if (handle->charstack != NULL) { - c = GPOINTER_TO_INT(handle->charstack->data); + c = GPOINTER_TO_UINT(handle->charstack->data); handle->charstack = g_slist_delete_link(handle->charstack, handle->charstack); return c; } @@ -621,9 +619,7 @@ g_return_val_if_fail(handle != NULL, EOF); - g_print("curl_vfs_ungetc reached\n"); - - handle->charstack = g_slist_prepend(handle->charstack, GINT_TO_POINTER(c)); + handle->charstack = g_slist_prepend(handle->charstack, GUINT_TO_POINTER(c)); if (handle->charstack != NULL) return c;