summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--charf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/charf.c b/charf.c
index 63ee0d8..b017532 100644
--- a/charf.c
+++ b/charf.c
@@ -194,7 +194,7 @@ int generate_each_charf(VALUETYPE* f, index_t i){
/*Set f to the values encoded in bit string t which is a value between 1 and powd = (1<<d)-2.*/
if(is_representative){
- for(int n=0; n<d; n++) f[n] = int_to_valuetype((t >> n) & 1);
+ for(int n=0; n<d; n++) f[n] = int_to_valuetype((t >> n) & 1UL);
return d;
}
else return 0;