[perl-Glib-Object-Introspection] Fix a gint vs. guint inconsistency



commit 446e401cdb1f1504ebf27517b3b0c5b9f7c76698
Author: Torsten SchÃnfeld <kaffeetisch gmx de>
Date:   Sat Feb 9 22:59:51 2013 +0100

    Fix a gint vs. guint inconsistency

 GObjectIntrospection.xs       |    4 ++--
 gperl-i11n-marshal-callback.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/GObjectIntrospection.xs b/GObjectIntrospection.xs
index 7629f90..e22ba31 100644
--- a/GObjectIntrospection.xs
+++ b/GObjectIntrospection.xs
@@ -72,8 +72,8 @@ typedef struct {
 	gpointer data;
 	GDestroyNotify destroy;
 
-	guint data_pos;
-	guint destroy_pos;
+	gint data_pos;
+	gint destroy_pos;
 
 	SV *data_sv;
 } GPerlI11nCCallbackInfo;
diff --git a/gperl-i11n-marshal-callback.c b/gperl-i11n-marshal-callback.c
index d00b8bf..0967818 100644
--- a/gperl-i11n-marshal-callback.c
+++ b/gperl-i11n-marshal-callback.c
@@ -93,7 +93,7 @@ callback_to_sv (GICallableInfo *interface, gpointer func, GPerlI11nInvocationInf
 	GSList *l;
 	for (l = invocation_info->callback_infos; l != NULL; l = l->next) {
 		GPerlI11nCCallbackInfo *callback_info = l->data;
-		if (invocation_info->current_pos == callback_info->destroy_pos) {
+		if ((gint) invocation_info->current_pos == callback_info->destroy_pos) {
 			dwarn ("      destroy notify for C callback %p\n",
 			       callback_info);
 			callback_info->destroy = func;
@@ -146,7 +146,7 @@ callback_data_to_sv (gpointer data,
 		return NULL;
 	for (l = invocation_info->callback_infos; l != NULL; l = l->next) {
 		GPerlI11nCCallbackInfo *callback_info = l->data;
-		if (callback_info->data_pos == invocation_info->current_pos) {
+		if (callback_info->data_pos == (gint) invocation_info->current_pos) {
 			dwarn ("      user data for C callback %p\n",
 			       callback_info);
 			attach_c_callback_data (callback_info, data);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]