* array.c (rb_ary_permutation, rb_ary_combination): missing type
names. * array.c (rb_ary_permutation): used buffer should be t1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1c65de7284
commit
f6a26d06a2
@ -1,3 +1,10 @@
|
||||
Tue Oct 9 21:29:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* array.c (rb_ary_permutation, rb_ary_combination): missing type
|
||||
names.
|
||||
|
||||
* array.c (rb_ary_permutation): used buffer should be t1.
|
||||
|
||||
Tue Oct 9 16:58:10 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* array.c: remove to_a completely.
|
||||
|
8
array.c
8
array.c
@ -3040,10 +3040,10 @@ rb_ary_permutation(VALUE ary, VALUE num)
|
||||
}
|
||||
}
|
||||
else { /* this is the general case */
|
||||
volatile t0 = tmpbuf(n,sizeof(long));
|
||||
volatile VALUE t0 = tmpbuf(n,sizeof(long));
|
||||
long *p = (long*)RSTRING_PTR(t0);
|
||||
volatile t1 = tmpbuf(n,sizeof(int));
|
||||
int *used = (int*)RSTRING_PTR(t0);
|
||||
volatile VALUE t1 = tmpbuf(n,sizeof(int));
|
||||
int *used = (int*)RSTRING_PTR(t1);
|
||||
|
||||
ary = rb_ary_dup(ary); /* private defensive copy of ary */
|
||||
|
||||
@ -3113,7 +3113,7 @@ rb_ary_combination(VALUE ary, VALUE num)
|
||||
}
|
||||
}
|
||||
else {
|
||||
volatile t0 = tmpbuf(n, sizeof(long));
|
||||
volatile VALUE t0 = tmpbuf(n, sizeof(long));
|
||||
long *stack = (long*)RSTRING_PTR(t0);
|
||||
long nlen = combi_len(len, n);
|
||||
volatile VALUE cc = rb_ary_new2(n);
|
||||
|
Loading…
x
Reference in New Issue
Block a user