Skip to content

Commit

Permalink
Merge pull request #266 from indigo-tribe/master
Browse files Browse the repository at this point in the history
Fix syntax error in truncate.c
  • Loading branch information
dwelch-spike committed Jan 19, 2021
2 parents efbdd36 + 1526bc3 commit 994e9e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/client/truncate.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ AerospikeClient_Truncate(AerospikeClient * self, PyObject * args, PyObject * kwd
}

// Start conversion of the nanosecond parameter
if PyLong_Check(py_nanos) {
if (PyLong_Check(py_nanos)) {

temp_long = PyLong_AsLongLong(py_nanos);
// There was a negative number outside of the range of - 2 ^ 63
Expand All @@ -147,7 +147,7 @@ AerospikeClient_Truncate(AerospikeClient * self, PyObject * args, PyObject * kwd
goto CLEANUP;
}

} else if PyInt_Check(py_nanos) {
} else if (PyInt_Check(py_nanos)) {
long tempInt;
tempInt = PyInt_AsLong(py_nanos);

Expand Down

0 comments on commit 994e9e1

Please sign in to comment.