]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/hmysql/hSqlite3.ml
Stupid fix to avoid new camlp5 bug with int64 literals
[helm.git] / helm / software / components / hmysql / hSqlite3.ml
index 707b482bc4d3cb5f76469324a8233d2495a272e9..310893ac5af2d10589d86f291844d359aafbcd82 100644 (file)
@@ -114,11 +114,11 @@ let quick_connect
          | Sqlite3.Data.TEXT rex, Sqlite3.Data.TEXT s ->
              let r = Str.regexp rex in
              if Str.string_match r s 0 then 
-               Sqlite3.Data.INT 1L 
+               Sqlite3.Data.INT Int64.one 
              else 
-               Sqlite3.Data.INT 0L
+               Sqlite3.Data.INT Int64.zero
          | _ -> raise (Error "wrong types to 'REGEXP'")
-        with Sys.Break -> Sqlite3.Data.INT 0L
+        with Sys.Break -> Sqlite3.Data.INT Int64.zero
           | exn -> HLog.error (Printexc.to_string exn); raise exn);
   Some db
 ;;