Compare commits

...

2 Commits

Author SHA1 Message Date
TC6IDM
0955872637
Merge 21aa91fef7 into fb54d8b549 2023-05-22 17:40:09 -05:00
TC6IDM
21aa91fef7
Guard Clause addition 2023-04-01 00:37:53 -04:00

View File

@ -27,14 +27,13 @@ public class AlignedTableFloat32 {
}
public synchronized void delete() {
if (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) {
swigfaissJNI.AlignedTableFloat32_tab_set(swigCPtr, this, SWIGTYPE_p_faiss__AlignedTableTightAllocT_float_32_t.getCPtr(value));