Skip to content

Commit 5bb8da7

Browse files
author
wulei
committed
min/max key
1 parent 571823b commit 5bb8da7

File tree

3 files changed

+194
-151
lines changed

3 files changed

+194
-151
lines changed

c_src/common.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma once
2-
#include "erl_nif.h"
2+
#include <erl_nif.h>
3+
#include <erl_driver.h>
34
#include "liblmdb/lmdb.h"
45

56
#ifndef __UNUSED
@@ -108,7 +109,6 @@ s corruption */
108109
message provided by strerror() for differ across platforms and/or may be
109110
localized to any given language (i18n). Use the errno atom rather than
110111
the message when matching in Erlang. You've been warned. */
111-
return enif_make_tuple(env, 2, ATOM_ERROR,
112-
enif_make_tuple(env, 2, term,
113-
enif_make_string(env, mdb_strerror(err), ERL_NIF_LATIN1)));
112+
return enif_make_tuple(env, 2, term,
113+
enif_make_string(env, mdb_strerror(err), ERL_NIF_LATIN1));
114114
}

0 commit comments

Comments
 (0)