summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Weigt <juw@posteo.de>2026-01-23 17:34:36 +0100
committerJulian Weigt <juw@posteo.de>2026-02-04 15:56:59 +0100
commit2d1d2bb2cbb6eb0702e6f7a17f8e867bc1de227d (patch)
treeacb76171d2a0066f3b217a21a6be4b8aed2e2ca5
parentb26ec289fb517259b13b758416912363b1b2ca79 (diff)
Forgot another 1UL.
-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.*/