summaryrefslogtreecommitdiff
path: root/ext/dba/dba_db3.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dba/dba_db3.c')
-rw-r--r--ext/dba/dba_db3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dba/dba_db3.c b/ext/dba/dba_db3.c
index 95a1e51fe0..5ed6f502cc 100644
--- a/ext/dba/dba_db3.c
+++ b/ext/dba/dba_db3.c
@@ -81,8 +81,8 @@ DBA_OPEN_FUNC(db3)
}
if (info->argc > 0) {
- convert_to_long_ex(&info->argv[0]);
- filemode = Z_LVAL(info->argv[0]);
+ convert_to_int_ex(&info->argv[0]);
+ filemode = Z_IVAL(info->argv[0]);
}
#ifdef DB_FCNTL_LOCKING