From 8acc1979bb99be7dc9924b537e0bce9a22c2195a Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 21 Aug 2018 22:33:47 +0300 Subject: [PATCH] mdbx: fix mdbx_env_get_maxkeysize() result type (minor). Change-Id: I8e3a7f8c2b81b5f8ac40801313cbd6f17d2dea64 --- mdbx.h | 2 +- src/mdbx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mdbx.h b/mdbx.h index 21aa371b..5e75f4da 100644 --- a/mdbx.h +++ b/mdbx.h @@ -918,7 +918,7 @@ LIBMDBX_API int mdbx_env_set_maxdbs(MDBX_env *env, MDBX_dbi dbs); * [in] env An environment handle returned by mdbx_env_create() * * Returns The maximum size of a key we can write. */ -LIBMDBX_API intptr_t mdbx_env_get_maxkeysize(MDBX_env *env); +LIBMDBX_API int mdbx_env_get_maxkeysize(MDBX_env *env); /* Set application information associated with the MDBX_env. * diff --git a/src/mdbx.c b/src/mdbx.c index ca628482..177ce0c6 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -4991,7 +4991,7 @@ fail: return rc; } -intptr_t __cold mdbx_env_get_maxkeysize(MDBX_env *env) { +int __cold mdbx_env_get_maxkeysize(MDBX_env *env) { if (!env || env->me_signature != MDBX_ME_SIGNATURE || !env->me_maxkey_limit) return -MDBX_EINVAL; return env->me_maxkey_limit;