summaryrefslogtreecommitdiffstats
path: root/src/idmap.c
AgeCommit message (Collapse)AuthorFilesLines
2014-03-05idmap: use UL for bitshift literalsTony Espy1-4/+4
The current bitshift logic in idmap incorrectly uses the literal 1 for the value to shift in idmap_alloc(), idmap_take(), and idmap_alloc_next(). This causes the resulting value to be an int instead of a long, which results in the wrong bit being set once the number of bits to shift operand exceeds sizeof(int). Also on some platforms, the behavior of the left bitshift operator is undefined when this overflow occurs.
2011-10-15core: Some more copyright fixesMarcel Holtmann1-1/+1
2011-10-10core: Update copyright informationMarcel Holtmann1-1/+1
2010-01-11Remove trailing/leading whitespaceAki Niemi1-2/+2
2010-01-07Fix: Be paranoid and check that last is in rangeDenis Kenzior1-0/+3
2010-01-07Add idmap_take utilityDenis Kenzior1-0/+12
2010-01-07Change the semantics to return id > max on failureDenis Kenzior1-1/+1
2010-01-07Add idmap_from_range constructorDenis Kenzior1-11/+34
2010-01-07Add initial implementation of idmap utilitiesDenis Kenzior1-0/+164