aboutsummaryrefslogtreecommitdiffstats
path: root/chilbert/Algorithm.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'chilbert/Algorithm.hpp')
-rw-r--r--chilbert/Algorithm.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/chilbert/Algorithm.hpp b/chilbert/Algorithm.hpp
index 0200456..e522554 100644
--- a/chilbert/Algorithm.hpp
+++ b/chilbert/Algorithm.hpp
@@ -160,7 +160,7 @@ namespace chilbert
e.reset();
d = D0;
l.reset();
- h.reset();
+ h = 0U;
// Work from MSB to LSB
for ( i = m-1; i >= 0; i-- )
@@ -188,7 +188,7 @@ namespace chilbert
update2<I>(l,t,w,n,e,d);
}
- h.grayCodeInv();
+ grayCodeInv(h);
return;
}
@@ -238,7 +238,7 @@ namespace chilbert
d = D0;
l.reset();
for ( j = 0; j < n; j++ )
- p[j] = 0;
+ p[j] = 0U;
ho = m*n;
@@ -408,7 +408,7 @@ namespace chilbert
d = D0;
l.reset();
for ( j = 0; j < n; j++ )
- p[j].reset();
+ p[j] = 0;
// Work from MSB to LSB
for ( i = m-1; i >= 0; i-- )