summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--charf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/charf.c b/charf.c
index cd44884..d179b29 100644
--- a/charf.c
+++ b/charf.c
@@ -189,8 +189,8 @@ int generate_each_charf(VALUETYPE* f, index_t i){
/*Check if t encodes the strictly largest of its equivalent translates.*/
/*Such t which may equal its translates have already been filtered out by the previous step because they are copies of at least two shorter functions.*/
- int ones = 0;
- for(int o = 0; o<d; o++) ones += 1<<o;
+ index_t ones = 0;
+ for(int o = 0; o<d; o++) ones += 1UL << o;
if(is_representative) for(int n=1; n<d; n++) if( t <= ( (t<<n) & ones ) + ((t>>(d-n)) & ones) ) is_representative = false;
/*Set f to the values encoded in bit string t which is a value between 1 and powd = (1<<d)-2.*/