mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-12-22 10:11:52 +01:00
Guard Clause addition
This commit is contained in:
parent
ec83d01dca
commit
21aa91fef7
@ -27,13 +27,12 @@ public class AlignedTableFloat32 {
|
||||
}
|
||||
|
||||
public synchronized void delete() {
|
||||
if (swigCPtr != 0) {
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
swigfaissJNI.delete_AlignedTableFloat32(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
if (swigCPtr == 0) return;
|
||||
if (swigCMemOwn) {
|
||||
swigCMemOwn = false;
|
||||
swigfaissJNI.delete_AlignedTableFloat32(swigCPtr);
|
||||
}
|
||||
swigCPtr = 0;
|
||||
}
|
||||
|
||||
public void setTab(SWIGTYPE_p_faiss__AlignedTableTightAllocT_float_32_t value) {
|
||||
|
Loading…
Reference in New Issue
Block a user