From f63794c79e66586283adbfe68f01298e6dcd8849 Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Fri, 27 Mar 2009 02:01:16 -0300
Subject: [PATCH 04/48] python2: Use double for probabilities

There's no need to use a float when our API takes a double, and Python can
do the conversion.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 bindings/python2/fiu_ll.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bindings/python2/fiu_ll.c b/bindings/python2/fiu_ll.c
index 8afb439..f0c9a49 100644
--- a/bindings/python2/fiu_ll.c
+++ b/bindings/python2/fiu_ll.c
@@ -68,9 +68,9 @@ static PyObject *enable_random(PyObject *self, PyObject *args)
 	int failnum;
 	PyObject *failinfo;
 	unsigned int flags;
-	float probability;
+	double probability;
 
-	if (!PyArg_ParseTuple(args, "siOIf:enable_random", &name, &failnum,
+	if (!PyArg_ParseTuple(args, "siOId:enable_random", &name, &failnum,
 				&failinfo, &flags, &probability))
 		return NULL;
 
-- 
1.6.2.2.646.gb214

