sparse_array 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/sp_ar.c +13 -13
- data/lib/sparse_array/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1222c633dd6ca39f1c1213d9bb60a9fe6293d083
|
4
|
+
data.tar.gz: c0c1d9c9b6ca5fc36f7d1db99d29ae47f0c4a9cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61e24daef31fe34e871ba1a44beb34c32a32d1fb0d2ba5c74c716c8fa781e67eeb38d803ee604fa86eaa2c078e64281ac715d26ae62b1b4c0df74f34c663b343
|
7
|
+
data.tar.gz: 133314b3dd6a8eee08ad31c073a265186b826d9bed06df190fde8c44a577f8e2cfaf0da3b9e7a5c2fa6d684b507cfb8223782405af7617687ebb8604752044e9
|
data/ext/sp_ar.c
CHANGED
@@ -557,7 +557,7 @@ sparse_array_each_value(VALUE self)
|
|
557
557
|
{
|
558
558
|
spar_table *table;
|
559
559
|
RETURN_ENUMERATOR(self, 0, 0);
|
560
|
-
|
560
|
+
GetSparseArray(self, table);
|
561
561
|
SPAR_FOREACH_START(table);
|
562
562
|
rb_yield((VALUE)(value));
|
563
563
|
SPAR_FOREACH_END();
|
@@ -565,15 +565,15 @@ sparse_array_each_value(VALUE self)
|
|
565
565
|
}
|
566
566
|
|
567
567
|
static VALUE
|
568
|
-
sparse_array_init_copy(VALUE self, VALUE
|
568
|
+
sparse_array_init_copy(VALUE self, VALUE orig)
|
569
569
|
{
|
570
570
|
spar_table *table;
|
571
|
-
spar_table *
|
571
|
+
spar_table *original;
|
572
572
|
GetSparseArray(self, table);
|
573
|
-
GetSparseArray(
|
574
|
-
rb_obj_init_copy(self,
|
575
|
-
spar_copy_to(
|
576
|
-
return
|
573
|
+
GetSparseArray(orig, original);
|
574
|
+
rb_obj_init_copy(self, orig);
|
575
|
+
spar_copy_to(original, table);
|
576
|
+
return self;
|
577
577
|
}
|
578
578
|
|
579
579
|
static VALUE
|
@@ -787,15 +787,15 @@ sparse_array_int_each_value(VALUE self)
|
|
787
787
|
}
|
788
788
|
|
789
789
|
static VALUE
|
790
|
-
sparse_array_int_init_copy(VALUE self, VALUE
|
790
|
+
sparse_array_int_init_copy(VALUE self, VALUE orig)
|
791
791
|
{
|
792
792
|
spar_table *table;
|
793
|
-
spar_table *
|
793
|
+
spar_table *original;
|
794
794
|
GetSparseArrayInt(self, table);
|
795
|
-
GetSparseArrayInt(
|
796
|
-
rb_obj_init_copy(self,
|
797
|
-
spar_copy_to(
|
798
|
-
return
|
795
|
+
GetSparseArrayInt(orig, original);
|
796
|
+
rb_obj_init_copy(self, orig);
|
797
|
+
spar_copy_to(original, table);
|
798
|
+
return self;
|
799
799
|
}
|
800
800
|
|
801
801
|
static VALUE
|
data/lib/sparse_array/version.rb
CHANGED