changed type to unsigned to be consistent with prototype