Fix some warnings by casting
for compilers which cannot detect the affectations as ok.
This commit is contained in:
1 parent
c520b7d0be
commit
652653af0b
3 files changed
+5
-5
No files matched your search
+1
-1
@@ -114,7 +114,7 @@ genint_init(genint_t s, unsigned int n)
|
||||
}
|
||||
s->n = n;
|
||||
s->data = ptr;
|
||||
s->max = alloc-1;
|
||||
s->max = (unsigned int) (alloc-1);
|
||||
s->mask0 = (index == 0) ? -GENINT_ONE : ~((GENINT_ONE<<(GENINT_LIMBSIZE-index))-1);
|
||||
s->mask_master = (((GENINT_ONE << alloc) - 1) << (GENINT_LIMBSIZE-alloc)) >> GENINT_ABA_CPT;
|
||||
atomic_init (&s->master, (genint_limb_t)0);
|
||||
|
||||
Reference in new issue
Block a user