Created
July 19, 2017 08:36
-
-
Save mdouze/d82fa89eb47e2ea8fd841e5454d71b88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/faiss/swigfaiss.swig b/faiss/swigfaiss.swig | |
--- a/faiss/swigfaiss.swig | |
+++ b/faiss/swigfaiss.swig | |
@@ -548,6 +548,10 @@ | |
return NULL; | |
} | |
+float * cast_integer_to_float_ptr (long x) { | |
+ return (float*)x; | |
+} | |
+ | |
%} | |
@@ -576,6 +580,8 @@ | |
REV_SWIG_PTR(int, NPY_INT32); | |
REV_SWIG_PTR(unsigned char, NPY_UINT8); | |
+float * cast_integer_to_float_ptr (long x); | |
+ | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment