PYTHON-707 - Fix -Werror=declaration-after-statement

This commit is contained in:
Bernie Hackett 2014-07-22 16:35:50 -07:00
parent bce2cc2a28
commit 2d8fc71cf3

View File

@ -2045,10 +2045,11 @@ static PyObject* get_value(PyObject* self, const char* buffer, unsigned* positio
}
case 18:
{
PyObject* bsonint64_type = _get_object(state->BSONInt64, "bson.bsonint64", "BSONInt64");
long long ll;
PyObject* bsonint64_type = _get_object(state->BSONInt64,
"bson.bsonint64", "BSONInt64");
if (!bsonint64_type)
goto invalid;
long long ll;
if (max < 8) {
goto invalid;
}