mdbx: fix mdbx_env_get_maxkeysize() result type (minor).

Change-Id: I8e3a7f8c2b81b5f8ac40801313cbd6f17d2dea64
This commit is contained in:
Leonid Yuriev 2018-08-21 22:33:47 +03:00
parent f371f10743
commit 8acc1979bb
2 changed files with 2 additions and 2 deletions

2
mdbx.h
View File

@ -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.
*

View File

@ -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;