Change type from long to unsigned long.