--- src/sqlite3_wrap.cpp
+++ src/sqlite3_wrap.cpp
@@ -6759,7 +6759,7 @@
   if (!SWIG_IsOK(res1)) {
     SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sqlite3_auto_extension" "', argument " "1"" of type '" "void *""'"); 
   }
-  result = (int)sqlite3_auto_extension(arg1);
+  result = (int)sqlite3_auto_extension((void (*)())arg1);
   _outv = SWIG_From_int((int)(result));
   if (_outv.is_defined()) _outp = SWIG_Octave_AppendOutput(_outp, _outv);
 fail:
