Commit d050273e authored by Daniel Salzman's avatar Daniel Salzman

knot: add explicit integer type to mapsize constants

parent 380a87ca
......@@ -186,7 +186,7 @@ int conf_new(
// Set the DB api.
out->api = knot_db_lmdb_api();
struct knot_db_lmdb_opts lmdb_opts = KNOT_DB_LMDB_OPTS_INITIALIZER;
lmdb_opts.mapsize = CONF_MAPSIZE * 1024 * 1024;
lmdb_opts.mapsize = (size_t)CONF_MAPSIZE * 1024 * 1024;
lmdb_opts.flags.env = KNOT_DB_LMDB_NOTLS;
// Open the database.
......
......@@ -148,7 +148,7 @@ int open_timers_db(const char *path, knot_db_t **timer_db)
}
struct knot_db_lmdb_opts opts = KNOT_DB_LMDB_OPTS_INITIALIZER;
opts.mapsize = TIMER_MAPSIZE * 1024 * 1024;
opts.mapsize = (size_t)TIMER_MAPSIZE * 1024 * 1024;
opts.path = path;
return db_api->init(timer_db, NULL, &opts);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment