Skip to content

Commit

Permalink
Fixing compilation with MSVC (issue #53)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavid committed Jan 25, 2012
1 parent 9d8d2ac commit 39bb5de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pygit2.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ Repository_read(Repository *self, PyObject *py_hex)
int err;
git_odb_object *obj;
size_t len;
PyObject* tuple;

len = py_str_to_git_oid(py_hex, &oid);
if (len == 0)
Expand All @@ -493,7 +494,7 @@ Repository_read(Repository *self, PyObject *py_hex)
if (obj == NULL)
return NULL;

PyObject* tuple = Py_BuildValue(
tuple = Py_BuildValue(
"(ns#)",
git_odb_object_type(obj),
git_odb_object_data(obj),
Expand Down

0 comments on commit 39bb5de

Please sign in to comment.