diff --git a/source/cdcdb/cdc/cas.d b/source/cdcdb/cdc/cas.d index eb68678..e39128a 100644 --- a/source/cdcdb/cdc/cas.d +++ b/source/cdcdb/cdc/cas.d @@ -27,8 +27,8 @@ public: this( string database, bool zstd = false, - int busyTimeout = 3000, - ubyte maxRetries = 3, + size_t busyTimeout = 3000, + size_t maxRetries = 3, size_t minSize = 256, size_t normalSize = 512, size_t maxSize = 1024, diff --git a/source/cdcdb/db/dblite.d b/source/cdcdb/db/dblite.d index 1e12c76..361d763 100644 --- a/source/cdcdb/db/dblite.d +++ b/source/cdcdb/db/dblite.d @@ -14,7 +14,7 @@ final class DBLite : Sqlite { private: string _dbPath; - ubyte _maxRetries; + size_t _maxRetries; // _scheme mixin(import("scheme.d")); @@ -25,7 +25,7 @@ private: } string msg; - ubyte tryNo = _maxRetries; + size_t tryNo = _maxRetries; while (tryNo) { try { @@ -90,7 +90,7 @@ private: } public: - this(string database, int busyTimeout, ubyte maxRetries) + this(string database, size_t busyTimeout, size_t maxRetries) { _dbPath = database; super(database);