Tests: fix CMP_FAIL on 32-bit machines
authorBrandon Lewis <brandon@collabora.co.uk>
Thu, 2 Dec 2010 19:47:23 +0000 (19:47 +0000)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 3 Dec 2010 11:39:42 +0000 (12:39 +0100)
tests/check/ges/save_and_load.c

index 124fe4b..f63645c 100644 (file)
@@ -236,10 +236,10 @@ GST_END_TEST;
 #define CMP_FAIL(obj, ...) \
 {\
   gchar *file, *func;\
-  guint64 line;\
+  guint line;\
   file = g_object_get_data (G_OBJECT(obj), "file");\
   func = g_object_get_data (G_OBJECT(obj), "function");\
-  line = (guint64) g_object_get_data (G_OBJECT(obj), "line");\
+  line = GPOINTER_TO_UINT(g_object_get_data (G_OBJECT(obj), "line"));\
   gst_debug_log (GST_CAT_DEFAULT, GST_LEVEL_ERROR, file, func,\
       line, G_OBJECT(obj), __VA_ARGS__);\
 }