force fashion. Instead of trying to get types right for this templated function, just make the function (used exactly once) take and return longs. Reported by: krismail