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 362eddd879..d2c4a2f367 100644
--- a/ext/dba/dba_gdbm.c
+++ b/ext/dba/dba_gdbm.c
@@ -54,7 +54,7 @@ DBA_OPEN_FUNC(gdbm)
return FAILURE; /* not possible */
if(info->argc > 0) {
- convert_to_int_ex(&info->argv[0]);
+ convert_to_long_ex(&info->argv[0]);
filemode = Z_LVAL(info->argv[0]);
}