summaryrefslogtreecommitdiff
path: root/ext/dba/dba_gdbm.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dba/dba_gdbm.c')
-rw-r--r--ext/dba/dba_gdbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dba/dba_gdbm.c b/ext/dba/dba_gdbm.c
index c5a2bccee0..362eddd879 100644
--- a/ext/dba/dba_gdbm.c
+++ b/ext/dba/dba_gdbm.c
@@ -55,7 +55,7 @@ DBA_OPEN_FUNC(gdbm)
if(info->argc > 0) {
convert_to_int_ex(&info->argv[0]);
- filemode = Z_IVAL(info->argv[0]);
+ filemode = Z_LVAL(info->argv[0]);
}
dbf = gdbm_open(info->path, 0, gmode, filemode, NULL);