Diff of /System.Data.SQLite/SQLiteFunction.cs [9dba08] .. [d8a46e] Maximize Restore

  Switch to side-by-side view

--- a/System.Data.SQLite/SQLiteFunction.cs
+++ b/System.Data.SQLite/SQLiteFunction.cs
@@ -181,33 +181,33 @@
 
             for (int n = 0; n < nArgs; n++)
             {
-                switch (_base.GetParamValueType(argint[n]))
+                switch (_base.GetParamValueType((IntPtr)argint[n]))
                 {
                     case TypeAffinity.Null:
                         parms[n] = DBNull.Value;
                         break;
                     case TypeAffinity.Int64:
-                        parms[n] = _base.GetParamValueInt64(argint[n]);
+                        parms[n] = _base.GetParamValueInt64((IntPtr)argint[n]);
                         break;
                     case TypeAffinity.Double:
-                        parms[n] = _base.GetParamValueDouble(argint[n]);
+                        parms[n] = _base.GetParamValueDouble((IntPtr)argint[n]);
                         break;
                     case TypeAffinity.Text:
-                        parms[n] = _base.GetParamValueText(argint[n]);
+                        parms[n] = _base.GetParamValueText((IntPtr)argint[n]);
                         break;
                     case TypeAffinity.Blob:
                         {
                             int x;
                             byte[] blob;
 
-                            x = (int) _base.GetParamValueBytes(argint[n], 0, null, 0, 0);
+                            x = (int)_base.GetParamValueBytes((IntPtr)argint[n], 0, null, 0, 0);
                             blob = new byte[x];
-                            _base.GetParamValueBytes(argint[n], 0, blob, 0, x);
+                            _base.GetParamValueBytes((IntPtr)argint[n], 0, blob, 0, x);
                             parms[n] = blob;
                         }
                         break;
                     case TypeAffinity.DateTime: // Never happens here but what the heck, maybe it will one day.
-                        parms[n] = _base.ToDateTime(_base.GetParamValueText(argint[n]));
+                        parms[n] = _base.ToDateTime(_base.GetParamValueText((IntPtr)argint[n]));
                         break;
                 }
             }