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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dba/dba_db4.c b/ext/dba/dba_db4.c
index a927c49ee5..4fab0b92ce 100644
--- a/ext/dba/dba_db4.c
+++ b/ext/dba/dba_db4.c
@@ -119,7 +119,7 @@ DBA_OPEN_FUNC(db4)
if (info->argc > 0) {
convert_to_int_ex(&info->argv[0]);
- filemode = Z_IVAL(info->argv[0]);
+ filemode = Z_LVAL(info->argv[0]);
}
if ((err=db_create(&dbp, NULL, 0)) == 0) {