Fixing compilation with MSVC (issue #53)
This commit is contained in:
3
pygit2.c
3
pygit2.c
@@ -484,6 +484,7 @@ Repository_read(Repository *self, PyObject *py_hex)
|
|||||||
int err;
|
int err;
|
||||||
git_odb_object *obj;
|
git_odb_object *obj;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
PyObject* tuple;
|
||||||
|
|
||||||
len = py_str_to_git_oid(py_hex, &oid);
|
len = py_str_to_git_oid(py_hex, &oid);
|
||||||
if (len == 0)
|
if (len == 0)
|
||||||
@@ -493,7 +494,7 @@ Repository_read(Repository *self, PyObject *py_hex)
|
|||||||
if (obj == NULL)
|
if (obj == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
PyObject* tuple = Py_BuildValue(
|
tuple = Py_BuildValue(
|
||||||
"(ns#)",
|
"(ns#)",
|
||||||
git_odb_object_type(obj),
|
git_odb_object_type(obj),
|
||||||
git_odb_object_data(obj),
|
git_odb_object_data(obj),
|
||||||
|
Reference in New Issue
Block a user