summaryrefslogtreecommitdiffstats
path: root/ext/dbm/dbm.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-01-16 12:19:22 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-01-16 12:19:22 +0000
commitd951f6555b1ff1e66e8edad2bdeb9e386c67951e (patch)
treea9b60dec20fa5f7f52ca7c8113195f2d65728a22 /ext/dbm/dbm.c
parent986c389e3116bc5746e8b2072de5e39b4c6719f1 (diff)
downloadruby-d951f6555b1ff1e66e8edad2bdeb9e386c67951e.tar.gz
ruby-d951f6555b1ff1e66e8edad2bdeb9e386c67951e.tar.xz
ruby-d951f6555b1ff1e66e8edad2bdeb9e386c67951e.zip
This commit was generated by cvs2svn to compensate for changes in r11,
which included commits to RCS files with non-trunk default branches. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dbm/dbm.c')
-rw-r--r--ext/dbm/dbm.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c
index ea0ac1930..b41680224 100644
--- a/ext/dbm/dbm.c
+++ b/ext/dbm/dbm.c
@@ -122,17 +122,15 @@ fdbm_fetch(obj, keystr)
}
static VALUE
-fdbm_indexes(obj, args)
- VALUE obj;
- struct RArray *args;
+fdbm_indexes(obj, ag)
+ VALUE obj, ag;
{
VALUE *p, *pend;
VALUE new;
int i = 0;
+ struct RArray *args = RARRAY(rb_Array(ag));
- args = (struct RArray*)rb_to_a(args);
new = ary_new2(args->len);
-
p = args->ptr; pend = p + args->len;
while (p < pend) {
ary_push(new, fdbm_fetch(obj, *p++));