--- a/src/raytracermodule.cc Mon May 05 15:31:14 2008 +0200
+++ b/src/raytracermodule.cc Tue May 06 09:39:58 2008 +0200
@@ -110,7 +110,7 @@
static char *kwdlist[] = {"position", "colour", NULL};
PyObject *TPos, *TCol = NULL;
Float px, py, pz;
- Float cr = 0.9, cg = 0.9, cb = 0.9;
+ Float cr = 0.9f, cg = 0.9f, cb = 0.9f;
if (!PyArg_ParseTupleAndKeywords(args, kwd, "O!|O!", kwdlist,
&PyTuple_Type, &TPos, &PyTuple_Type, &TCol))
@@ -374,7 +374,7 @@
static PyObject *Material_setTransmissivity(PyObject* self, PyObject* args)
{
- Float trans, rindex = 1.3;
+ Float trans, rindex = 1.3f;
if (!PyArg_ParseTuple(args, "f|f", &trans, &rindex))
return NULL;