From 0616907ea8c197d4770ab4e9174a8db274c7f5e1 Mon Sep 17 00:00:00 2001 From: behackett Date: Mon, 3 Jun 2013 17:26:49 -0700 Subject: [PATCH] Fix parameter hiding. --- bson/_cbsonmodule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bson/_cbsonmodule.c b/bson/_cbsonmodule.c index 182f30d9a..2b1b517d3 100644 --- a/bson/_cbsonmodule.c +++ b/bson/_cbsonmodule.c @@ -1256,10 +1256,10 @@ static PyObject* get_value(PyObject* self, const char* buffer, int* position, while (*position < end) { PyObject* to_append; - int type = (int)buffer[(*position)++]; + int bson_type = (int)buffer[(*position)++]; int key_size = strlen(buffer + *position); *position += key_size + 1; /* just skip the key, they're in order. */ - to_append = get_value(self, buffer, position, type, + to_append = get_value(self, buffer, position, bson_type, max - key_size, as_class, tz_aware, uuid_subtype); if (!to_append) { Py_DECREF(value);