After the third time of calling GST_PROPS_FLOAT with an integer and wondering why...
authorDavid Schleef <ds@schleef.org>
Thu, 17 Oct 2002 00:53:13 +0000 (00:53 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 17 Oct 2002 00:53:13 +0000 (00:53 +0000)
Original commit message from CVS:
After the third time of calling GST_PROPS_FLOAT with an integer and
wondering why it didn't work, I add an explicit cast.

common
gst/gstprops.h

diff --git a/common b/common
index fa2e4df..2f0e1ec 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit fa2e4df50fd965b1dbd3b35b87d914ff87362815
+Subproject commit 2f0e1ecbfe7d27cf1b2215204958c95516db173d
index 29d5201..7b46bbd 100644 (file)
@@ -63,8 +63,8 @@ typedef enum {
 #define GST_PROPS_GLIST(a)             GST_PROPS_GLIST_TYPE,(a)
 #define GST_PROPS_INT(a)               GST_PROPS_INT_TYPE,(a)
 #define GST_PROPS_INT_RANGE(a,b)       GST_PROPS_INT_RANGE_TYPE,(a),(b)
-#define GST_PROPS_FLOAT(a)             GST_PROPS_FLOAT_TYPE,(a)
-#define GST_PROPS_FLOAT_RANGE(a,b)     GST_PROPS_FLOAT_RANGE_TYPE,(a),(b)
+#define GST_PROPS_FLOAT(a)             GST_PROPS_FLOAT_TYPE,((float)(a))
+#define GST_PROPS_FLOAT_RANGE(a,b)     GST_PROPS_FLOAT_RANGE_TYPE,((float)(a)),((float)(b))
 #define GST_PROPS_FOURCC(a)            GST_PROPS_FOURCC_TYPE,(a)
 #define GST_PROPS_BOOLEAN(a)           GST_PROPS_BOOL_TYPE,(a)
 #define GST_PROPS_STRING(a)            GST_PROPS_STRING_TYPE,(a)