We now also need to cast the values to (unsigned long), as on some platforms sizeof returns (unsigned int).