Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Commit

Permalink
Fix warnings when compiling _template.c on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
abbeyj committed Jun 28, 2009
1 parent 168e65b commit 7a2bf65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/c/_template.c
Expand Up @@ -14,7 +14,7 @@ static PyObject *unspecified = NULL;

static PyObject *py_valordefault(PyObject *self, PyObject *args, PyObject *kwargs)
{
PyObject *value, *def, *res;
PyObject *value, *def;

if (!PyArg_ParseTuple(args, "OO", &value, &def))
return NULL;
Expand All @@ -31,7 +31,7 @@ static const char _template_doc[] = "\
\n\
";
static struct PyMethodDef _template_methods[] = {
{"valOrDefault", py_valordefault, METH_VARARGS, NULL},
{"valOrDefault", (PyCFunction)py_valordefault, METH_VARARGS, NULL},
{NULL}
};

Expand All @@ -41,10 +41,10 @@ PyMODINIT_FUNC init_template()
_template_doc);
unspecifiedModule = PyImport_ImportModule("Cheetah.Unspecified");
if ( (PyErr_Occurred()) || (!unspecifiedModule) )
return NULL;
return;
unspecified = PyObject_GetAttrString(unspecifiedModule, "Unspecified");
if (PyErr_Occurred())
return NULL;
return;
}

#ifdef __cplusplus
Expand Down

0 comments on commit 7a2bf65

Please sign in to comment.