summaryrefslogtreecommitdiff
path: root/gtk/gtkquartz.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2009-12-30 14:21:31 +0100
committerKristian Rietveld <kris@gtk.org>2009-12-30 14:21:31 +0100
commitc37c57528c674795c8c17d1549b57121e5e2d126 (patch)
treeadb616975a04de77e868dd536b3159d4c91562ff /gtk/gtkquartz.c
parentf91907101d12f4f8808f4024b462820543ccccf6 (diff)
downloadgtk+-c37c57528c674795c8c17d1549b57121e5e2d126.tar.gz
Fix compiler warning
Diffstat (limited to 'gtk/gtkquartz.c')
-rw-r--r--gtk/gtkquartz.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkquartz.c b/gtk/gtkquartz.c
index 939db937df..6a94c3fd3b 100644
--- a/gtk/gtkquartz.c
+++ b/gtk/gtkquartz.c
@@ -270,7 +270,7 @@ _gtk_quartz_set_selection_data_for_pasteboard (NSPasteboard *pasteboard,
GdkDisplay *display;
gint format;
const guchar *data;
- gint length;
+ NSUInteger length;
target = gdk_atom_name (gtk_selection_data_get_target (selection_data));
display = gtk_selection_data_get_display (selection_data);
@@ -326,8 +326,8 @@ _gtk_quartz_set_selection_data_for_pasteboard (NSPasteboard *pasteboard,
g_strfreev (list);
}
else
- [pasteboard setData:[NSData dataWithBytesNoCopy:data
- length:length
- freeWhenDone:NO]
- forType:type];
+ [pasteboard setData:[NSData dataWithBytesNoCopy:(void *)data
+ length:length
+ freeWhenDone:NO]
+ forType:type];
}