diff options
Diffstat (limited to 'ext/dba/dba_gdbm.c')
-rw-r--r-- | ext/dba/dba_gdbm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dba/dba_gdbm.c b/ext/dba/dba_gdbm.c index d2c4a2f367..c5a2bccee0 100644 --- a/ext/dba/dba_gdbm.c +++ b/ext/dba/dba_gdbm.c @@ -54,8 +54,8 @@ DBA_OPEN_FUNC(gdbm) return FAILURE; /* not possible */ 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]); } dbf = gdbm_open(info->path, 0, gmode, filemode, NULL); |