summaryrefslogtreecommitdiff
path: root/ext/dba/dba_db4.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dba/dba_db4.c')
-rw-r--r--ext/dba/dba_db4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dba/dba_db4.c b/ext/dba/dba_db4.c
index 94a6c95e81..a927c49ee5 100644
--- a/ext/dba/dba_db4.c
+++ b/ext/dba/dba_db4.c
@@ -118,8 +118,8 @@ DBA_OPEN_FUNC(db4)
}
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]);
}
if ((err=db_create(&dbp, NULL, 0)) == 0) {