]> iEval git - algorithm-bit-xs.git/blobdiff - lib/Algorithm/BIT/XS.pm
Bump version and update Changes
[algorithm-bit-xs.git] / lib / Algorithm / BIT / XS.pm
index d9a8f4ba4d1a04f60e23a411c708f60663414f5f..a0e02557545454cdcd736dc7f0ba19542b95df27 100644 (file)
@@ -4,7 +4,7 @@ use 5.014000;
 use strict;
 use warnings;
 
-our $VERSION = '0.001';
+our $VERSION = '0.002';
 
 require XSLoader;
 XSLoader::load('Algorithm::BIT::XS', $VERSION);
@@ -21,7 +21,7 @@ sub get {
 
 sub set {
        my ($b, $idx, $value) = @_;
-       $b->update($idx, $value - $b->get($idx, $value))
+       $b->update($idx, $value - $b->get($idx))
 }
 
 1;
@@ -93,7 +93,7 @@ Sets I<$bit>[I<$idx>] to I<$value>.
 
 =head1 SEE ALSO
 
-L<Algorithm::BIT>, L<https://en.wikipedia.org/wiki/Fenwick_tree>
+L<Algorithm::BIT>, L<Algorithm::BIT2D::XS>, L<https://en.wikipedia.org/wiki/Fenwick_tree>
 
 =head1 AUTHOR
 
This page took 0.024476 seconds and 4 git commands to generate.