diff options
Diffstat (limited to 'ext/dba/dba_ndbm.c')
-rw-r--r-- | ext/dba/dba_ndbm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dba/dba_ndbm.c b/ext/dba/dba_ndbm.c index 417446759c..6805c45d9f 100644 --- a/ext/dba/dba_ndbm.c +++ b/ext/dba/dba_ndbm.c @@ -59,8 +59,8 @@ DBA_OPEN_FUNC(ndbm) } 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 = dbm_open(info->path, gmode, filemode); |